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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnextBatch(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) Read the next batch of data from the file.voidseek(PositionProvider[] index, TypeReader.ReadPhase readPhase) voidskipRows(long rows, TypeReader.ReadPhase readerCategory) voidstartStripe(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:BatchReaderRead the next batch of data from the file.- Specified by:
nextBatchin 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:
startStripein classBatchReader- Throws:
IOException
-
skipRows
- Specified by:
skipRowsin classBatchReader- Throws:
IOException
-
seek
- Specified by:
seekin classBatchReader- Throws:
IOException
-