Packages

class ContinuousExecution extends StreamExecution

Linear Supertypes
StreamExecution, Logging, StreamingQuery, StreamingQuery, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContinuousExecution
  2. StreamExecution
  3. Logging
  4. StreamingQuery
  5. StreamingQuery
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ContinuousExecution(sparkSession: classic.SparkSession, trigger: Trigger, triggerClock: Clock, extraOptions: Map[String, String], plan: WriteToStream)

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. def addOffset(epoch: Long, stream: ContinuousStream, partitionOffsets: Seq[PartitionOffset]): Unit

    Report ending partition offsets for the given reader at the given epoch.

  6. val analyzedPlan: LogicalPlan
    Definition Classes
    StreamExecution
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def availableOffsets: StreamProgress

    Get the end or formerly know as "available" offsets of the latest batch that has been planned

    Get the end or formerly know as "available" offsets of the latest batch that has been planned

    Definition Classes
    StreamExecution
  9. def awaitInitialization(timeoutMs: Long): Unit

    Await until all fields of the query have been initialized.

    Await until all fields of the query have been initialized.

    Definition Classes
    StreamExecution
  10. val awaitProgressLock: ReentrantLock

    A lock used to wait/notify when batches complete.

    A lock used to wait/notify when batches complete. Use a fair lock to avoid thread starvation.

    Attributes
    protected
    Definition Classes
    StreamExecution
  11. val awaitProgressLockCondition: Condition
    Attributes
    protected
    Definition Classes
    StreamExecution
  12. def awaitTermination(timeoutMs: Long): Boolean
    Definition Classes
    StreamExecution → StreamingQuery
  13. def awaitTermination(): Unit
    Definition Classes
    StreamExecution → StreamingQuery
  14. def checkpointFile(name: String): String

    Returns the path of a file with name in the checkpoint directory.

    Returns the path of a file with name in the checkpoint directory.

    Attributes
    protected
    Definition Classes
    StreamExecution
  15. val checkpointMetadata: StreamingQueryCheckpointMetadata

    Manages the metadata from this checkpoint location.

    Manages the metadata from this checkpoint location.

    Attributes
    protected
    Definition Classes
    StreamExecution
  16. def cleanup(): Unit

    Any clean up that needs to happen when the query is stopped or exits

    Any clean up that needs to happen when the query is stopped or exits

    Attributes
    protected
    Definition Classes
    StreamExecution
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  18. def commit(epoch: Long): Unit

    Mark the specified epoch as committed.

    Mark the specified epoch as committed. All readers must have reported end offsets for the epoch before this is called.

  19. lazy val commitLog: CommitLog
    Definition Classes
    StreamExecution
  20. var committedOffsets: StreamProgress

    Tracks how much data we have processed and committed to the sink or state store from each input source.

    Tracks how much data we have processed and committed to the sink or state store from each input source. Only the scheduler thread should modify this field, and only in atomic steps. Other threads should make a shallow copy if they are going to access this field more than once, since the field's value may change at any time.

    Definition Classes
    StreamExecution
  21. def createWrite(table: SupportsWrite, options: Map[String, String], inputPlan: LogicalPlan): Write
    Attributes
    protected
    Definition Classes
    StreamExecution
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def exception: Option[StreamingQueryException]

    Returns the StreamingQueryException if the query was terminated by an exception.

    Returns the StreamingQueryException if the query was terminated by an exception.

    Definition Classes
    StreamExecution → StreamingQuery
  25. def explain(): Unit
    Definition Classes
    StreamExecution → StreamingQuery
  26. def explain(extended: Boolean): Unit
    Definition Classes
    StreamExecution → StreamingQuery
  27. def explainInternal(extended: Boolean): String

    Expose for tests

    Expose for tests

    Definition Classes
    StreamExecution
  28. def getBatchDescriptionString: String
    Attributes
    protected
    Definition Classes
    StreamExecution
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. def getLatestExecutionContext(): StreamExecutionContext

    Get the latest execution context .

    Get the latest execution context .

    Definition Classes
    ContinuousExecutionStreamExecution
  31. def getStartOffsetsOfLatestBatch: StreamProgress

    Get the start offsets of the latest batch that has been planned

    Get the start offsets of the latest batch that has been planned

    Definition Classes
    StreamExecution
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  33. val id: UUID
    Definition Classes
    StreamExecution → StreamingQuery
  34. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  35. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def interruptAndAwaitExecutionThreadTermination(): Unit

    Interrupts the query execution thread and awaits its termination until until it exceeds the timeout.

    Interrupts the query execution thread and awaits its termination until until it exceeds the timeout. The timeout can be set on "spark.sql.streaming.stopTimeout".

    Attributes
    protected
    Definition Classes
    StreamExecution
    Annotations
    @throws("")
    Exceptions thrown

    TimeoutException If the thread cannot be stopped within the timeout

  37. def isActive: Boolean

    Whether the query is currently active or not

    Whether the query is currently active or not

    Definition Classes
    StreamExecution → StreamingQuery
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  40. def lastExecution: IncrementalExecution
    Definition Classes
    StreamExecution
  41. def lastProgress: StreamingQueryProgress
    Definition Classes
    StreamExecution → StreamingQuery
  42. def latestOffsets: StreamProgress
    Definition Classes
    StreamExecution
  43. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  44. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  55. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  56. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  57. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  58. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  59. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  60. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  61. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  62. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  64. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  65. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  66. var loggingThreadContext: Instance
    Attributes
    protected
    Definition Classes
    StreamExecution
  67. val logicalPlan: WriteToContinuousDataSource

    The base logical plan which will be used across batch runs.

    The base logical plan which will be used across batch runs. Once the value is set, it should not be modified.

    Definition Classes
    ContinuousExecutionStreamExecution
  68. val minLogEntriesToMaintain: Int
    Attributes
    protected
    Definition Classes
    StreamExecution
  69. val name: String
    Definition Classes
    StreamExecution → StreamingQuery
  70. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  71. var noNewData: Boolean

    A flag to indicate that a batch has completed with no new data available.

    A flag to indicate that a batch has completed with no new data available.

    Attributes
    protected
    Definition Classes
    StreamExecution
  72. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  73. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  74. lazy val offsetLog: OffsetSeqLog
    Definition Classes
    StreamExecution
  75. val outputMode: OutputMode
    Definition Classes
    StreamExecution
  76. val pollingDelayMs: Long
    Attributes
    protected
    Definition Classes
    StreamExecution
  77. def postEvent(event: Event): Unit
    Attributes
    protected
    Definition Classes
    StreamExecution
  78. val prettyIdString: String

    Pretty identified string of printing in logs.

    Pretty identified string of printing in logs. Format is If name is set "queryName [id = xyz, runId = abc]" else "[id = xyz, runId = abc]"

    Attributes
    protected
    Definition Classes
    StreamExecution
  79. def processAllAvailable(): Unit
    Definition Classes
    StreamExecution → StreamingQuery
  80. val progressReporter: ProgressReporter
    Attributes
    protected
    Definition Classes
    StreamExecution
  81. def purge(threshold: Long): Unit
    Attributes
    protected
    Definition Classes
    StreamExecution
  82. def purgeStatefulMetadata(plan: SparkPlan): Unit
    Attributes
    protected
    Definition Classes
    StreamExecution
  83. val queryExecutionThread: QueryExecutionThread

    The thread that runs the micro-batches of this stream.

    The thread that runs the micro-batches of this stream. Note that this thread must be org.apache.spark.util.UninterruptibleThread to workaround KAFKA-1894: interrupting a running KafkaConsumer may cause endless loop.

    Definition Classes
    StreamExecution
  84. def recentProgress: Array[StreamingQueryProgress]
    Definition Classes
    StreamExecution → StreamingQuery
  85. val resolvedCheckpointRoot: String
    Definition Classes
    StreamExecution
  86. def runActivatedStream(sparkSessionForStream: classic.SparkSession): Unit

    Run the activated stream until stopped.

    Run the activated stream until stopped.

    Attributes
    protected
    Definition Classes
    ContinuousExecutionStreamExecution
  87. val runId: UUID
    Definition Classes
    StreamExecution → StreamingQuery
  88. val sink: Table
    Definition Classes
    StreamExecution
  89. var sources: Seq[ContinuousStream]

    The list of stream instances which will be used across batch runs.

    The list of stream instances which will be used across batch runs. Once the value is set, it should not be modified.

    Attributes
    protected
    Definition Classes
    ContinuousExecutionStreamExecution
  90. val sparkSession: classic.SparkSession

    <invalid inheritdoc annotation>

    <invalid inheritdoc annotation>

    Definition Classes
    StreamExecutionStreamingQuery → StreamingQuery
  91. val sparkSessionForStream: classic.SparkSession

    Isolated spark session to run the batches with.

    Isolated spark session to run the batches with.

    Attributes
    protected[sql]
    Definition Classes
    StreamExecution
  92. def start(): Unit

    Starts the execution.

    Starts the execution. This returns only after the thread has started and QueryStartedEvent has been posted to all the listeners.

    Definition Classes
    StreamExecution
  93. val state: AtomicReference[State]

    Defines the internal state of execution

    Defines the internal state of execution

    Attributes
    protected
    Definition Classes
    StreamExecution
  94. def status: StreamingQueryStatus
    Definition Classes
    StreamExecution → StreamingQuery
  95. def stop(): Unit

    Stops the query execution thread to terminate the query.

    Stops the query execution thread to terminate the query.

    Definition Classes
    ContinuousExecution → StreamingQuery
  96. def stopInNewThread(error: Throwable): Unit

    Stores error and stops the query execution thread to terminate the query in new thread.

  97. def stopSources(): Unit

    Stops all streaming sources safely.

    Stops all streaming sources safely.

    Attributes
    protected
    Definition Classes
    StreamExecution
  98. var streamDeathCause: StreamingQueryException
    Attributes
    protected
    Definition Classes
    StreamExecution
  99. lazy val streamMetrics: MetricsReporter

    Used to report metrics to coda-hale.

    Used to report metrics to coda-hale. This uses id for easier tracking across restarts.

    Definition Classes
    StreamExecution
  100. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  101. def toString(): String
    Definition Classes
    StreamExecution → AnyRef → Any
  102. val trigger: Trigger
    Definition Classes
    StreamExecution
  103. val triggerClock: Clock
    Definition Classes
    StreamExecution
  104. var uniqueSources: Map[SparkDataStream, ReadLimit]

    A list of unique sources in the query plan.

    A list of unique sources in the query plan. This will be set when generating logical plan.

    Attributes
    protected
    Definition Classes
    StreamExecution
  105. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  106. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  107. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  108. val watermarkMsMap: Map[Int, Long]

    A map of current watermarks, keyed by the position of the watermark operator in the physical plan.

    A map of current watermarks, keyed by the position of the watermark operator in the physical plan.

    This state is 'soft state', which does not affect the correctness and semantics of watermarks and is not persisted across query restarts. The fault-tolerant watermark state is in offsetSeqMetadata.

    Attributes
    protected
    Definition Classes
    StreamExecution
  109. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

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 StreamExecution

Inherited from Logging

Inherited from StreamingQuery

Inherited from StreamingQuery

Inherited from AnyRef

Inherited from Any

Ungrouped