public abstract class BatchReader extends Object
Modifier and Type | Field and Description |
---|---|
TypeReader |
rootType |
protected int |
vectorColumnCount |
Constructor and Description |
---|
BatchReader(TypeReader rootType) |
Modifier and Type | Method and Description |
---|---|
abstract void |
nextBatch(VectorizedRowBatch batch,
int batchSize,
TypeReader.ReadPhase readPhase)
Read the next batch of data from the file.
|
protected void |
resetBatch(VectorizedRowBatch batch,
int batchSize) |
abstract void |
seek(PositionProvider[] index,
TypeReader.ReadPhase readPhase) |
void |
setVectorColumnCount(int vectorColumnCount) |
abstract void |
skipRows(long rows,
TypeReader.ReadPhase readPhase) |
abstract void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
public final TypeReader rootType
protected int vectorColumnCount
public BatchReader(TypeReader rootType)
public abstract void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
IOException
public void setVectorColumnCount(int vectorColumnCount)
public abstract void nextBatch(VectorizedRowBatch batch, int batchSize, TypeReader.ReadPhase readPhase) throws IOException
batch
- the batch to read intobatchSize
- the number of rows to readreadPhase
- defines the read phaseIOException
- errors reading the fileprotected void resetBatch(VectorizedRowBatch batch, int batchSize)
public abstract void skipRows(long rows, TypeReader.ReadPhase readPhase) throws IOException
IOException
public abstract void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
IOException
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.