Class MicrobatchSource.Reader

java.lang.Object
org.apache.beam.sdk.io.Source.Reader<T>
org.apache.beam.runners.spark.io.MicrobatchSource.Reader
All Implemented Interfaces:
AutoCloseable
Enclosing class:
MicrobatchSource<T,CheckpointMarkT extends UnboundedSource.CheckpointMark>

public class MicrobatchSource.Reader extends Source.Reader<T>
Mostly based on BoundedReadFromUnboundedSource's UnboundedToBoundedSourceAdapter, with some adjustments for Spark specifics.

This Reader reads until one of the following thresholds has been reached:

  1. max records (per batch)
  2. max read duration (per batch)