org.apache.spark.sql.execution

streaming

package streaming

Visibility
  1. Public
  2. All

Type Members

  1. abstract class CompactibleFileStreamLog[T <: AnyRef] extends HDFSMetadataLog[Array[T]]

    An abstract class for compactible metadata logs.

  2. class ConsoleSink extends Sink with Logging

  3. class ConsoleSinkProvider extends StreamSinkProvider with DataSourceRegister

  4. case class EventTimeStats(max: Long, min: Long, sum: Long, count: Long) extends Product with Serializable

    Class for collecting event time stats with an accumulator

  5. class EventTimeStatsAccum extends AccumulatorV2[Long, EventTimeStats]

    Accumulator that collects stats on event time in a batch.

  6. case class EventTimeWatermarkExec(eventTime: Attribute, delay: CalendarInterval, child: SparkPlan) extends SparkPlan with Product with Serializable

    Used to mark a column as the containing the event time for a given record.

  7. class FileStreamOptions extends Logging

    User specified options for file streams.

  8. class FileStreamSink extends Sink with Logging

    A sink that writes out results to parquet files.

  9. class FileStreamSinkLog extends CompactibleFileStreamLog[SinkFileStatus]

    A special log for FileStreamSink.

  10. class FileStreamSource extends Source with Logging

    A very simple source that reads files from the given directory as they appear.

  11. class FileStreamSourceLog extends CompactibleFileStreamLog[FileEntry]

  12. case class FileStreamSourceOffset(logOffset: Long) extends Offset with Product with Serializable

    Offset for the FileStreamSource.

  13. class ForeachSink[T] extends Sink with Serializable

    A Sink that forwards all data into ForeachWriter according to the contract defined by ForeachWriter.

  14. class HDFSMetadataLog[T <: AnyRef] extends MetadataLog[T] with Logging

    A MetadataLog implementation based on HDFS.

  15. class IncrementalExecution extends QueryExecution with Logging

    A variant of QueryExecution that allows the execution of the given LogicalPlan plan incrementally.

  16. case class LongOffset(offset: Long) extends Offset with Product with Serializable

    A simple offset for sources that produce a single linear stream of data.

  17. class ManifestFileCommitProtocol extends FileCommitProtocol with Serializable with Logging

    A FileCommitProtocol that tracks the list of valid files in a manifest file, used in structured streaming.

  18. case class MemoryPlan(sink: MemorySink, output: Seq[Attribute]) extends LeafNode with Product with Serializable

    Used to query the data that has been written into a MemorySink.

  19. class MemorySink extends Sink with Logging

    A sink that stores the results in memory.

  20. case class MemoryStream[A](id: Int, sqlContext: SQLContext)(implicit evidence$2: Encoder[A]) extends Source with Logging with Product with Serializable

    A Source that produces value stored in memory as they are added by the user.

  21. trait MetadataLog[T] extends AnyRef

    A general MetadataLog that supports the following features:

  22. class MetadataLogFileIndex extends PartitioningAwareFileIndex

    A FileIndex that generates the list of files to processing by reading them from the metadata log files generated by the FileStreamSink.

  23. class MetricsReporter extends metrics.source.Source with Logging

    Serves metrics from a org.apache.spark.sql.streaming.StreamingQuery to Codahale/DropWizard metrics

  24. abstract class Offset extends AnyRef

    An offset is a monotonically increasing metric used to track progress in the computation of a stream.

  25. case class OffsetSeq(offsets: Seq[Option[Offset]], metadata: Option[OffsetSeqMetadata] = scala.None) extends Product with Serializable

    An ordered collection of offsets, used to track the progress of processing data from one or more Sources that are present in a streaming query.

  26. class OffsetSeqLog extends HDFSMetadataLog[OffsetSeq]

    This class is used to log offsets to persistent files in HDFS.

  27. case class OffsetSeqMetadata(batchWatermarkMs: Long = 0, batchTimestampMs: Long = 0) extends Product with Serializable

    Contains metadata associated with a OffsetSeq.

  28. case class OperatorStateId(checkpointLocation: String, operatorId: Long, batchId: Long) extends Product with Serializable

    Used to identify the state store for a given operator.

  29. case class ProcessingTimeExecutor(processingTime: ProcessingTime, clock: Clock = ...) extends TriggerExecutor with Logging with Product with Serializable

    A trigger executor that runs a batch every intervalMs milliseconds.

  30. trait ProgressReporter extends Logging

    Responsible for continually reporting statistics about the amount of data processed as well as latency for a streaming query.

  31. case class SerializedOffset(json: String) extends Offset with Product with Serializable

    Used when loading a JSON serialized offset from external storage.

  32. trait Sink extends AnyRef

    An interface for systems that can collect the results of a streaming query.

  33. case class SinkFileStatus(path: String, size: Long, isDir: Boolean, modificationTime: Long, blockReplication: Int, blockSize: Long, action: String) extends Product with Serializable

    The status of a file outputted by FileStreamSink.

  34. trait Source extends AnyRef

    A source of continually arriving data for a streaming query.

  35. case class StateStoreRestoreExec(keyExpressions: Seq[Attribute], stateId: Option[OperatorStateId], child: SparkPlan) extends SparkPlan with UnaryExecNode with StatefulOperator with Product with Serializable

    For each input tuple, the key is calculated and the value from the StateStore is added to the stream (in addition to the input tuple) if present.

  36. case class StateStoreSaveExec(keyExpressions: Seq[Attribute], stateId: Option[OperatorStateId] = scala.None, outputMode: Option[OutputMode] = scala.None, eventTimeWatermark: Option[Long] = scala.None, child: SparkPlan) extends SparkPlan with UnaryExecNode with StatefulOperator with Product with Serializable

    For each input tuple, the key is calculated and the tuple is put into the StateStore.

  37. trait StatefulOperator extends SparkPlan

    An operator that saves or restores state from the StateStore.

  38. class StreamExecution extends StreamingQuery with ProgressReporter with Logging

    Manages the execution of a streaming Spark SQL query that is occurring in a separate thread.

  39. abstract class StreamExecutionThread extends UninterruptibleThread

    A special thread to run the stream query.

  40. case class StreamMetadata(id: String) extends Product with Serializable

    Contains metadata associated with a StreamingQuery.

  41. class StreamProgress extends Map[Source, Offset]

    A helper class that looks like a Map[Source, Offset].

  42. case class StreamingExecutionRelation(source: Source, output: Seq[Attribute]) extends LeafNode with Product with Serializable

    Used to link a streaming Source of data into a org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.

  43. class StreamingQueryListenerBus extends SparkListener with ListenerBus[StreamingQueryListener, Event]

    A bus to forward events to StreamingQueryListeners.

  44. class StreamingQueryWrapper extends StreamingQuery with Serializable

    Wrap non-serializable StreamExecution to make the query serializable as it's easy to for it to get captured with normal usage.

  45. case class StreamingRelation(dataSource: DataSource, sourceName: String, output: Seq[Attribute]) extends LeafNode with Product with Serializable

    Used to link a streaming DataSource into a org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.

  46. case class StreamingRelationExec(sourceName: String, output: Seq[Attribute]) extends SparkPlan with LeafExecNode with Product with Serializable

    A dummy physical plan for StreamingRelation to support org.apache.spark.sql.Dataset.explain

  47. class TextSocketSource extends Source with Logging

    A source that reads text lines through a TCP socket, designed only for tutorials and debugging.

  48. class TextSocketSourceProvider extends StreamSourceProvider with DataSourceRegister with Logging

  49. trait TriggerExecutor extends AnyRef

Value Members

  1. object CompactibleFileStreamLog

  2. object EventTimeStats extends Serializable

  3. object FileStreamSink

  4. object FileStreamSinkLog

  5. object FileStreamSource

  6. object FileStreamSourceLog

  7. object FileStreamSourceOffset extends Serializable

  8. object HDFSMetadataLog

  9. object LongOffset extends Serializable

  10. object MemoryStream extends Serializable

  11. object OffsetSeq extends Serializable

  12. object OffsetSeqLog

  13. object OffsetSeqMetadata extends Serializable

  14. object SinkFileStatus extends Serializable

  15. object StreamMetadata extends Logging with Serializable

  16. object StreamingExecutionRelation extends Serializable

  17. object StreamingRelation extends Serializable

  18. object TextSocketSource

  19. package state

Ungrouped