Package org.apache.flink.orc
Class OrcColumnarRowSplitReader<BATCH>
java.lang.Object
org.apache.flink.orc.OrcSplitReader<org.apache.flink.table.data.RowData,BATCH>
org.apache.flink.orc.OrcColumnarRowSplitReader<BATCH>
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OrcColumnarRowSplitReader<BATCH>
extends OrcSplitReader<org.apache.flink.table.data.RowData,BATCH>
OrcSplitReader to read ORC files into RowData.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to genVectorizedColumnBatch. -
Field Summary
Fields inherited from class org.apache.flink.orc.OrcSplitReader
nextRow, rowBatchWrapper -
Constructor Summary
ConstructorsConstructorDescriptionOrcColumnarRowSplitReader(OrcShim<BATCH> shim, org.apache.hadoop.conf.Configuration conf, org.apache.orc.TypeDescription schema, int[] selectedFields, OrcColumnarRowSplitReader.ColumnBatchGenerator<BATCH> batchGenerator, List<OrcFilters.Predicate> conjunctPredicates, int batchSize, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) -
Method Summary
Modifier and TypeMethodDescriptionprotected intfillRows()Fills an ORC batch into an array of Row.org.apache.flink.table.data.RowDatanextRecord(org.apache.flink.table.data.RowData reuse) Reads the next record from the input.Methods inherited from class org.apache.flink.orc.OrcSplitReader
close, getRecordReader, reachedEnd, seekToRow
-
Constructor Details
-
OrcColumnarRowSplitReader
public OrcColumnarRowSplitReader(OrcShim<BATCH> shim, org.apache.hadoop.conf.Configuration conf, org.apache.orc.TypeDescription schema, int[] selectedFields, OrcColumnarRowSplitReader.ColumnBatchGenerator<BATCH> batchGenerator, List<OrcFilters.Predicate> conjunctPredicates, int batchSize, org.apache.flink.core.fs.Path path, long splitStart, long splitLength) throws IOException - Throws:
IOException
-
-
Method Details
-
fillRows
protected int fillRows()Description copied from class:OrcSplitReaderFills an ORC batch into an array of Row.- Specified by:
fillRowsin classOrcSplitReader<org.apache.flink.table.data.RowData,BATCH> - Returns:
- The number of rows that were filled.
-
nextRecord
public org.apache.flink.table.data.RowData nextRecord(org.apache.flink.table.data.RowData reuse) Description copied from class:OrcSplitReaderReads the next record from the input.- Specified by:
nextRecordin classOrcSplitReader<org.apache.flink.table.data.RowData,BATCH> - Parameters:
reuse- Object that may be reused.- Returns:
- Read record.
-