public static class TreeReaderFactory.MapTreeReader extends TreeReaderFactory.TreeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase| Modifier and Type | Field and Description |
|---|---|
protected TypeReader |
keyReader |
protected IntegerReader |
lengths |
protected TypeReader |
valueReader |
columnId, context, present, readerCategory| Modifier | Constructor and Description |
|---|---|
protected |
MapTreeReader(int columnId,
InStream present,
TreeReaderFactory.Context context,
InStream data,
OrcProto.ColumnEncoding encoding,
TypeReader keyReader,
TypeReader valueReader) |
protected |
MapTreeReader(int fileColumn,
TypeDescription readerSchema,
TreeReaderFactory.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkEncoding(OrcProto.ColumnEncoding encoding) |
void |
nextVector(ColumnVector previous,
boolean[] isNull,
int batchSize,
org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext,
TypeReader.ReadPhase readPhase)
Populates the isNull vector array in the previousVector object based on
the present stream values.
|
void |
seek(PositionProvider[] index,
TypeReader.ReadPhase readPhase)
Seek to the given position.
|
void |
skipRows(long items,
TypeReader.ReadPhase readPhase) |
void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
countNonNullRowsInRange, countNonNulls, createIntegerReader, getColumnId, getPresent, getReaderCategory, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldProcessChildprotected final TypeReader keyReader
protected final TypeReader valueReader
protected IntegerReader lengths
protected MapTreeReader(int fileColumn,
TypeDescription readerSchema,
TreeReaderFactory.Context context)
throws IOException
IOExceptionprotected MapTreeReader(int columnId,
InStream present,
TreeReaderFactory.Context context,
InStream data,
OrcProto.ColumnEncoding encoding,
TypeReader keyReader,
TypeReader valueReader)
throws IOException
IOExceptionpublic void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
TreeReaderFactory.TreeReaderseek in interface TypeReaderseek in class TreeReaderFactory.TreeReaderindex - the indexes loaded from the filereadPhase - the current readPhaseIOExceptionpublic void nextVector(ColumnVector previous, boolean[] isNull, int batchSize, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, TypeReader.ReadPhase readPhase) throws IOException
TreeReaderFactory.TreeReadernextVector in interface TypeReadernextVector in class TreeReaderFactory.TreeReaderprevious - 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 vectorfilterContext - the information about the rows that were selected
by the filter.readPhase - The read levelIOExceptionpublic void checkEncoding(OrcProto.ColumnEncoding encoding) throws IOException
checkEncoding in interface TypeReadercheckEncoding in class TreeReaderFactory.TreeReaderIOExceptionpublic void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
startStripe in interface TypeReaderstartStripe in class TreeReaderFactory.TreeReaderIOExceptionpublic void skipRows(long items,
TypeReader.ReadPhase readPhase)
throws IOException
IOExceptionCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.