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, setVectorColumnCount
public StructBatchReader(TypeReader rowReader, TreeReaderFactory.Context context)
public void nextBatch(VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) throws IOException
BatchReader
nextBatch
in class BatchReader
batch
- 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 BatchReader
IOException
public void skipRows(long rows, TypeReader.ReadPhase readerCategory) throws IOException
skipRows
in class BatchReader
IOException
public void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
seek
in class BatchReader
IOException
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.