public static class TreeReaderFactory.StructTreeReader extends TreeReaderFactory.TreeReader
| Modifier and Type | Field and Description |
|---|---|
protected TreeReaderFactory.TreeReader[] |
fields |
columnId, context, present, vectorColumnCount| Modifier | Constructor and Description |
|---|---|
protected |
StructTreeReader(int columnId,
InStream present,
TreeReaderFactory.Context context,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.TreeReader[] childReaders) |
protected |
StructTreeReader(int columnId,
TypeDescription readerSchema,
TreeReaderFactory.Context context) |
| Modifier and Type | Method and Description |
|---|---|
TreeReaderFactory.TreeReader[] |
getChildReaders() |
void |
nextBatch(VectorizedRowBatch batch,
int batchSize)
Called at the top level to read into the given batch.
|
void |
nextVector(ColumnVector previousVector,
boolean[] isNull,
int batchSize)
Populates the isNull vector array in the previousVector object based on
the present stream values.
|
void |
seek(PositionProvider[] index)
Seek to the given position.
|
countNonNulls, createIntegerReader, getColumnId, getPresent, seekprotected final TreeReaderFactory.TreeReader[] fields
protected StructTreeReader(int columnId,
TypeDescription readerSchema,
TreeReaderFactory.Context context)
throws IOException
IOExceptionprotected StructTreeReader(int columnId,
InStream present,
TreeReaderFactory.Context context,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.TreeReader[] childReaders)
throws IOException
IOExceptionpublic TreeReaderFactory.TreeReader[] getChildReaders()
public void seek(PositionProvider[] index) throws IOException
TreeReaderFactory.TreeReaderseek in class TreeReaderFactory.TreeReaderindex - the indexes loaded from the fileIOExceptionpublic void nextBatch(VectorizedRowBatch batch, int batchSize) throws IOException
TreeReaderFactory.TreeReadernextBatch in class TreeReaderFactory.TreeReaderbatch - the batch to read intobatchSize - the number of rows to readIOExceptionpublic void nextVector(ColumnVector previousVector, boolean[] isNull, int batchSize) throws IOException
TreeReaderFactory.TreeReadernextVector in class TreeReaderFactory.TreeReaderpreviousVector - 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 vectorIOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.