public abstract static class TreeReaderFactory.TreeReader extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
columnId |
protected TreeReaderFactory.Context |
context |
protected BitFieldReader |
present |
protected int |
vectorColumnCount |
Modifier | Constructor and Description |
---|---|
protected |
TreeReader(int columnId,
InStream in,
TreeReaderFactory.Context context) |
Modifier and Type | Method and Description |
---|---|
protected long |
countNonNulls(long rows) |
protected static IntegerReader |
createIntegerReader(OrcProto.ColumnEncoding.Kind kind,
InStream in,
boolean signed,
TreeReaderFactory.Context context) |
int |
getColumnId() |
BitFieldReader |
getPresent() |
void |
nextBatch(VectorizedRowBatch batch,
int batchSize)
Called at the top level to read into the given batch.
|
void |
nextVector(ColumnVector previous,
boolean[] isNull,
int batchSize)
Populates the isNull vector array in the previousVector object based on
the present stream values.
|
void |
seek(PositionProvider index) |
void |
seek(PositionProvider[] index)
Seek to the given position.
|
protected final int columnId
protected BitFieldReader present
protected int vectorColumnCount
protected final TreeReaderFactory.Context context
protected TreeReader(int columnId, InStream in, TreeReaderFactory.Context context) throws IOException
IOException
protected static IntegerReader createIntegerReader(OrcProto.ColumnEncoding.Kind kind, InStream in, boolean signed, TreeReaderFactory.Context context) throws IOException
IOException
public void seek(PositionProvider[] index) throws IOException
index
- the indexes loaded from the fileIOException
public void seek(PositionProvider index) throws IOException
IOException
protected long countNonNulls(long rows) throws IOException
IOException
public void nextBatch(VectorizedRowBatch batch, int batchSize) throws IOException
batch
- the batch to read intobatchSize
- the number of rows to readIOException
public void nextVector(ColumnVector previous, boolean[] isNull, int batchSize) throws IOException
previous
- The columnVector object whose isNull value is populatedisNull
- Whether the each value was null at a higher level. If
isNull is null, all values are non-null.batchSize
- Size of the column vectorIOException
public BitFieldReader getPresent()
public int getColumnId()
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.