Package org.apache.iceberg.data.orc
Class GenericOrcReader
java.lang.Object
org.apache.iceberg.data.orc.GenericOrcReader
- All Implemented Interfaces:
OrcRowReader<Record>
-
Constructor Summary
ConstructorDescriptionGenericOrcReader
(Schema expectedSchema, org.apache.orc.TypeDescription readOrcSchema, Map<Integer, ?> idToConstant) -
Method Summary
Modifier and TypeMethodDescriptionstatic OrcRowReader
<Record> buildReader
(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema) static OrcRowReader
<Record> buildReader
(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema, Map<Integer, ?> idToConstant) read
(org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch batch, int row) Reads a row.void
setBatchContext
(long batchOffsetInFile)
-
Constructor Details
-
GenericOrcReader
-
-
Method Details
-
buildReader
public static OrcRowReader<Record> buildReader(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema) -
buildReader
public static OrcRowReader<Record> buildReader(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema, Map<Integer, ?> idToConstant) -
read
Description copied from interface:OrcRowReader
Reads a row.- Specified by:
read
in interfaceOrcRowReader<Record>
-
setBatchContext
public void setBatchContext(long batchOffsetInFile) - Specified by:
setBatchContext
in interfaceOrcRowReader<Record>
-