Packages

c

org.apache.spark.sql.execution.streaming.continuous

ContinuousQueuedDataReader

class ContinuousQueuedDataReader extends Closeable

A wrapper for a continuous processing data reader, including a reading queue and epoch markers.

This will be instantiated once per partition - successive calls to compute() in the ContinuousDataSourceRDD will reuse the same reader. This is required to get continuity of offsets across epochs. Each compute() should call the next() method here until null is returned.

Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContinuousQueuedDataReader
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContinuousQueuedDataReader(partitionIndex: Int, reader: ContinuousPartitionReader[InternalRow], schema: StructType, context: TaskContext, dataQueueSize: Int, epochPollIntervalMs: Long)

Type Members

  1. sealed trait ContinuousRecord extends AnyRef

    The record types in the read buffer.

  2. case class ContinuousRow(row: InternalRow, offset: PartitionOffset) extends ContinuousRecord with Product with Serializable
  3. class DataReaderThread extends Thread with Logging

    The data component of ContinuousQueuedDataReader.

    The data component of ContinuousQueuedDataReader. Pushes (row, offset) to the queue when a new row arrives to the ContinuousPartitionReader.

  4. class EpochMarkerGenerator extends Runnable with Logging

    The epoch marker component of ContinuousQueuedDataReader.

    The epoch marker component of ContinuousQueuedDataReader. Populates the queue with EpochMarker when a new epoch marker arrives.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close(): Unit
    Definition Classes
    ContinuousQueuedDataReader → Closeable → AutoCloseable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def next(): InternalRow

    Return the next row to be read in the current epoch, or null if the epoch is done.

    Return the next row to be read in the current epoch, or null if the epoch is done.

    After returning null, the ContinuousDataSourceRDD compute() for the following epoch will call next() again to start getting rows.

  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. object EpochMarker extends ContinuousRecord with Product with Serializable

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped