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(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch,
int batchSize,
TypeReader.ReadPhase readPhase)
Read the next batch of data from the file.
|
protected void |
resetBatch(org.apache.hadoop.hive.ql.exec.vector.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
IOExceptionpublic void setVectorColumnCount(int vectorColumnCount)
public abstract void nextBatch(org.apache.hadoop.hive.ql.exec.vector.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(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch, int batchSize)
public abstract void skipRows(long rows,
TypeReader.ReadPhase readPhase)
throws IOException
IOExceptionpublic abstract void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
IOExceptionCopyright © 2013–2024 The Apache Software Foundation. All rights reserved.