FilePartitionReaderFactory¶
FilePartitionReaderFactory is an extension of the PartitionReaderFactory abstraction for PartitionReader factories of file-based connectors.
Contract¶
Building PartitionReader¶
PartitionReader (of InternalRows)
See:
Used when:
FilePartitionReaderFactoryis requested to create a reader
Building Columnar PartitionReader¶
PartitionReader (of ColumnarBatchs)
See:
Used when:
FilePartitionReaderFactoryis requested to create a columnar reader
Options¶
See:
Used when:
FilePartitionReaderFactoryis requested to create a reader and columnar reader
Implementations¶
AvroPartitionReaderFactoryCSVPartitionReaderFactoryJsonPartitionReaderFactoryOrcPartitionReaderFactory- ParquetPartitionReaderFactory
TextPartitionReaderFactory
Creating PartitionReader¶
Signature
createReader is part of the PartitionReaderFactory abstraction.
createReader...FIXME
Creating Columnar PartitionReader¶
Signature
createColumnarReader is part of the PartitionReaderFactory abstraction.
createColumnarReader makes sure that the given InputPartition is a FilePartition (or throws an AssertionError).
createColumnarReader creates a new columnar PartitionReader for every PartitionedFile (of the FilePartition).
In the end, createColumnarReader creates a FilePartitionReader for the files.