protected static class TreeReaderFactory.StructTreeReader extends TreeReaderFactory.TreeReader
Modifier and Type | Field and Description |
---|---|
protected TreeReaderFactory.TreeReader[] |
fields |
columnId, present, valuePresent, vectorColumnCount
Modifier | Constructor and Description |
---|---|
protected |
StructTreeReader(int columnId,
TypeDescription readerSchema,
SchemaEvolution evolution,
boolean[] included,
boolean skipCorrupt) |
Modifier and Type | Method and Description |
---|---|
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.
|
countNonNulls, getPresent, seek
protected final TreeReaderFactory.TreeReader[] fields
protected StructTreeReader(int columnId, TypeDescription readerSchema, SchemaEvolution evolution, boolean[] included, boolean skipCorrupt) throws IOException
IOException
public void nextBatch(VectorizedRowBatch batch, int batchSize) throws IOException
TreeReaderFactory.TreeReader
nextBatch
in class TreeReaderFactory.TreeReader
batch
- the batch to read intobatchSize
- the number of rows to readIOException
public void nextVector(ColumnVector previousVector, boolean[] isNull, int batchSize) throws IOException
TreeReaderFactory.TreeReader
nextVector
in class TreeReaderFactory.TreeReader
previousVector
- 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
Copyright © 2016 The Apache Software Foundation. All rights reserved.