public static class TreeReaderFactory.MapTreeReader extends TreeReaderFactory.TreeReader
Modifier and Type | Field and Description |
---|---|
protected TreeReaderFactory.TreeReader |
keyReader |
protected IntegerReader |
lengths |
protected TreeReaderFactory.TreeReader |
valueReader |
columnId, context, present, vectorColumnCount
Modifier | Constructor and Description |
---|---|
protected |
MapTreeReader(int columnId,
InStream present,
TreeReaderFactory.Context context,
InStream data,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.TreeReader keyReader,
TreeReaderFactory.TreeReader valueReader) |
protected |
MapTreeReader(int fileColumn,
TypeDescription readerSchema,
TreeReaderFactory.Context context) |
Modifier and Type | Method and Description |
---|---|
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)
Seek to the given position.
|
countNonNulls, createIntegerReader, getColumnId, getPresent, nextBatch, seek
protected final TreeReaderFactory.TreeReader keyReader
protected final TreeReaderFactory.TreeReader valueReader
protected IntegerReader lengths
protected MapTreeReader(int fileColumn, TypeDescription readerSchema, TreeReaderFactory.Context context) throws IOException
IOException
protected MapTreeReader(int columnId, InStream present, TreeReaderFactory.Context context, InStream data, OrcProto.ColumnEncoding encoding, TreeReaderFactory.TreeReader keyReader, TreeReaderFactory.TreeReader valueReader) throws IOException
IOException
public void seek(PositionProvider[] index) throws IOException
TreeReaderFactory.TreeReader
seek
in class TreeReaderFactory.TreeReader
index
- the indexes loaded from the fileIOException
public void nextVector(ColumnVector previous, boolean[] isNull, int batchSize) throws IOException
TreeReaderFactory.TreeReader
nextVector
in class TreeReaderFactory.TreeReader
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
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.