public class PrimitiveBatchReader extends BatchReader
rootType, vectorColumnCount
Constructor and Description |
---|
PrimitiveBatchReader(TypeReader rowReader) |
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 readPhase) |
void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
resetBatch, setVectorColumnCount
public PrimitiveBatchReader(TypeReader rowReader)
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 readPhase) throws IOException
skipRows
in class BatchReader
IOException
public void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
seek
in class BatchReader
IOException
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.