public class GenericOrcReader extends java.lang.Object implements OrcRowReader<Record>
Constructor and Description |
---|
GenericOrcReader(Schema expectedSchema,
org.apache.orc.TypeDescription readOrcSchema,
java.util.Map<java.lang.Integer,?> idToConstant) |
Modifier and Type | Method and Description |
---|---|
static OrcRowReader<Record> |
buildReader(Schema expectedSchema,
org.apache.orc.TypeDescription fileSchema) |
static OrcRowReader<Record> |
buildReader(Schema expectedSchema,
org.apache.orc.TypeDescription fileSchema,
java.util.Map<java.lang.Integer,?> idToConstant) |
Record |
read(org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch batch,
int row)
Reads a row.
|
void |
setBatchContext(long batchOffsetInFile) |
public GenericOrcReader(Schema expectedSchema, org.apache.orc.TypeDescription readOrcSchema, java.util.Map<java.lang.Integer,?> idToConstant)
public static OrcRowReader<Record> buildReader(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema)
public static OrcRowReader<Record> buildReader(Schema expectedSchema, org.apache.orc.TypeDescription fileSchema, java.util.Map<java.lang.Integer,?> idToConstant)
public Record read(org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch batch, int row)
OrcRowReader
read
in interface OrcRowReader<Record>
public void setBatchContext(long batchOffsetInFile)
setBatchContext
in interface OrcRowReader<Record>