@Evolving public interface ContinuousPartitionReaderFactory extends PartitionReaderFactory
PartitionReaderFactory
that returns ContinuousPartitionReader
instead of PartitionReader
. It's used for continuous streaming processing.Modifier and Type | Method and Description |
---|---|
default ContinuousPartitionReader<ColumnarBatch> |
createColumnarReader(InputPartition partition)
Returns a columnar partition reader to read data from the given
InputPartition . |
ContinuousPartitionReader<org.apache.spark.sql.catalyst.InternalRow> |
createReader(InputPartition partition)
Returns a row-based partition reader to read data from the given
InputPartition . |
supportColumnarReads
ContinuousPartitionReader<org.apache.spark.sql.catalyst.InternalRow> createReader(InputPartition partition)
PartitionReaderFactory
InputPartition
.
Implementations probably need to cast the input partition to the concrete
InputPartition
class defined for the data source.
createReader
in interface PartitionReaderFactory
default ContinuousPartitionReader<ColumnarBatch> createColumnarReader(InputPartition partition)
PartitionReaderFactory
InputPartition
.
Implementations probably need to cast the input partition to the concrete
InputPartition
class defined for the data source.
createColumnarReader
in interface PartitionReaderFactory