public class StructBatchReader extends BatchReader
TreeReaderFactory.StructTreeReader no nulls. Root Struct vector is
not represented as part of the final VectorizedRowBatch.rootType, vectorColumnCount| Constructor and Description |
|---|
StructBatchReader(TypeReader rowReader,
TreeReaderFactory.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
nextBatch(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) |
resetBatch, setVectorColumnCountpublic StructBatchReader(TypeReader rowReader, TreeReaderFactory.Context context)
public void nextBatch(VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) throws IOException
BatchReadernextBatch in class BatchReaderbatch - the batch to read intobatchSize - the number of rows to readreadPhase - defines the read phaseIOException - errors reading the filepublic void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
startStripe in class BatchReaderIOExceptionpublic void skipRows(long rows,
TypeReader.ReadPhase readerCategory)
throws IOException
skipRows in class BatchReaderIOExceptionpublic void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
seek in class BatchReaderIOExceptionCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.