Packages

c

org.apache.spark.sql.execution.streaming

IncrementalExecution

class IncrementalExecution extends QueryExecution with Logging

A variant of QueryExecution that allows the execution of the given LogicalPlan plan incrementally. Possibly preserving state in between each execution.

Linear Supertypes
QueryExecution, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IncrementalExecution
  2. QueryExecution
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IncrementalExecution(sparkSession: classic.SparkSession, logicalPlan: LogicalPlan, outputMode: OutputMode, checkpointLocation: String, queryId: UUID, runId: UUID, currentBatchId: Long, prevOffsetSeqMetadata: Option[OffsetSeqMetadata], offsetSeqMetadata: OffsetSeqMetadata, watermarkPropagator: WatermarkPropagator, isFirstBatch: Boolean, currentStateStoreCkptId: Map[Long, Array[Array[String]]] = MutableMap[Long, Array[Array[String]]](), stateSchemaMetadatas: Map[Long, StateSchemaBroadcast] = MutableMap[Long, StateSchemaBroadcast](), mode: CommandExecutionMode.Value = CommandExecutionMode.ALL)

    currentStateStoreCkptId

    checkpoint ID for the latest committed version. It is operatorID -> array of checkpointIDs. Array index n represents checkpoint ID for the nth shuffle partition.

    stateSchemaMetadatas

    map that keeps track of the StateSchemaBroadcasts per operator. It is passed in by reference from MicrobatchExecution, so it is populated during planning in the first batch, and passed in to the StatefulOperatorStateInfo on every subsequent batch

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging
  2. sealed trait SparkPlanPartialRule extends AnyRef

Value Members

  1. object debug

    A special namespace for commands that can be used to debug query execution.

    A special namespace for commands that can be used to debug query execution.

    Definition Classes
    QueryExecution
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def analyzed: LogicalPlan
    Definition Classes
    QueryExecution
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def assertAnalyzed(): Unit

    no need to try-catch again as this is already done once

    no need to try-catch again as this is already done once

    Definition Classes
    IncrementalExecutionQueryExecution
  8. def assertCommandExecuted(): Unit
    Definition Classes
    QueryExecution
  9. def assertExecutedPlanPrepared(): Unit
    Definition Classes
    QueryExecution
  10. def assertOptimized(): Unit
    Definition Classes
    QueryExecution
  11. def assertSparkPlanPrepared(): Unit
    Definition Classes
    QueryExecution
  12. def assertSupported(): Unit

    No need assert supported, as this check has already been done

    No need assert supported, as this check has already been done

    Definition Classes
    IncrementalExecutionQueryExecution
  13. val checkpointLocation: String
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. def commandExecuted: LogicalPlan
    Definition Classes
    QueryExecution
  16. val currentBatchId: Long
  17. val currentStateStoreCkptId: Map[Long, Array[Array[String]]]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def executePhase[T](phase: String)(block: => T): T
    Attributes
    protected
    Definition Classes
    QueryExecution
  21. def executedPlan: SparkPlan
    Definition Classes
    QueryExecution
  22. def explainString(mode: ExplainMode): String
    Definition Classes
    QueryExecution
  23. def extendedExplainInfo(append: (String) => Unit, plan: SparkPlan): Unit
    Definition Classes
    QueryExecution
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. val id: Long
    Definition Classes
    QueryExecution
  27. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  28. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. val isFirstBatch: Boolean
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. lazy val isLazyAnalysis: Boolean
    Definition Classes
    QueryExecution
  32. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  33. val lazyToRdd: LazyTry[SQLExecutionRDD]
    Definition Classes
    QueryExecution
  34. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  35. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  48. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  55. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  56. val logical: LogicalPlan
    Definition Classes
    QueryExecution
  57. val mode: CommandExecutionMode.Value
    Definition Classes
    QueryExecution
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def normalized: LogicalPlan
    Definition Classes
    QueryExecution
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  62. def observedMetrics: Map[String, Row]

    Get the metrics observed during the execution of the query plan.

    Get the metrics observed during the execution of the query plan.

    Definition Classes
    QueryExecution
  63. val offsetSeqMetadata: OffsetSeqMetadata
  64. lazy val optimizedPlan: LogicalPlan

    See [SPARK-18339] Walk the optimized logical plan and replace CurrentBatchTimestamp with the desired literal

    See [SPARK-18339] Walk the optimized logical plan and replace CurrentBatchTimestamp with the desired literal

    Definition Classes
    IncrementalExecutionQueryExecution
  65. val outputMode: OutputMode
  66. val planner: SparkPlanner
    Definition Classes
    IncrementalExecutionQueryExecution
  67. def preparations: Seq[Rule[SparkPlan]]
    Definition Classes
    IncrementalExecutionQueryExecution
  68. val prevOffsetSeqMetadata: Option[OffsetSeqMetadata]
  69. val queryId: UUID
  70. val runId: UUID
  71. def shouldRunAnotherBatch(newMetadata: OffsetSeqMetadata): Boolean

    Should the MicroBatchExecution run another batch based on this execution and the current updated metadata.

    Should the MicroBatchExecution run another batch based on this execution and the current updated metadata.

    This method performs simulation of watermark propagation against new batch (which is not planned yet), which is required for asking the needs of another batch to each stateful operator.

  72. val shuffleCleanupMode: ShuffleCleanupMode
    Definition Classes
    QueryExecution
  73. def simpleString: String
    Definition Classes
    QueryExecution
  74. def sparkPlan: SparkPlan
    Definition Classes
    QueryExecution
  75. val sparkSession: classic.SparkSession
    Definition Classes
    QueryExecution
  76. val state: Rule[SparkPlan]
  77. val stateSchemaMetadatas: Map[Long, StateSchemaBroadcast]
  78. def stringWithStats: String
    Definition Classes
    QueryExecution
  79. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  80. def toRdd: RDD[InternalRow]

    Internal version of the RDD.

    Internal version of the RDD. Avoids copies and has no schema. Note for callers: Spark may apply various optimization including reusing object: this means the row is valid only for the iteration it is retrieved. You should avoid storing row and accessing after iteration. (Calling collect() is one of known bad usage.) If you want to store these rows into collection, please apply some converter or copy row which produces new object per iteration. Given QueryExecution is not a public class, end users are discouraged to use this: please use Dataset.rdd instead where conversion will be applied.

    Definition Classes
    QueryExecution
  81. def toString(): String
    Definition Classes
    QueryExecution → AnyRef → Any
  82. val tracker: QueryPlanningTracker
    Definition Classes
    QueryExecution
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. val watermarkPropagator: WatermarkPropagator
  87. def withCachedData: LogicalPlan
    Definition Classes
    QueryExecution
  88. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  89. object ConvertLocalLimitRule extends SparkPlanPartialRule
  90. object ShufflePartitionsRule extends SparkPlanPartialRule
  91. object StateOpIdRule extends SparkPlanPartialRule
  92. object StateSchemaAndOperatorMetadataRule extends SparkPlanPartialRule
  93. object WatermarkPropagationRule extends SparkPlanPartialRule

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from QueryExecution

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped