Package org.apache.orc.impl.reader.tree
Class StructBatchReader
java.lang.Object
org.apache.orc.impl.reader.tree.BatchReader
org.apache.orc.impl.reader.tree.StructBatchReader
Handles the Struct rootType for batch handling. The handling assumes that the root
TreeReaderFactory.StructTreeReader
no nulls. Root Struct vector is
not represented as part of the final VectorizedRowBatch
.-
Field Summary
Fields inherited from class org.apache.orc.impl.reader.tree.BatchReader
rootType, vectorColumnCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
nextBatch
(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) Read the next batch of data from the file.void
seek
(PositionProvider[] index, TypeReader.ReadPhase readPhase) void
skipRows
(long rows, TypeReader.ReadPhase readerCategory) void
startStripe
(StripePlanner planner, TypeReader.ReadPhase readPhase) Methods inherited from class org.apache.orc.impl.reader.tree.BatchReader
resetBatch, setVectorColumnCount
-
Constructor Details
-
StructBatchReader
-
-
Method Details
-
nextBatch
public void nextBatch(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) throws IOException Description copied from class:BatchReader
Read the next batch of data from the file.- Specified by:
nextBatch
in classBatchReader
- Parameters:
batch
- the batch to read intobatchSize
- the number of rows to readreadPhase
- defines the read phase- Throws:
IOException
- errors reading the file
-
startStripe
- Specified by:
startStripe
in classBatchReader
- Throws:
IOException
-
skipRows
- Specified by:
skipRows
in classBatchReader
- Throws:
IOException
-
seek
- Specified by:
seek
in classBatchReader
- Throws:
IOException
-