public abstract static class TreeReaderFactory.TreeReader extends Object implements TypeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase| Modifier and Type | Field and Description |
|---|---|
protected int |
columnId |
protected TreeReaderFactory.Context |
context |
protected BitFieldReader |
present |
protected TypeReader.ReaderCategory |
readerCategory |
| Modifier | Constructor and Description |
|---|---|
protected |
TreeReader(int columnId,
InStream in,
@NotNull TreeReaderFactory.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkEncoding(OrcProto.ColumnEncoding encoding) |
protected static int |
countNonNullRowsInRange(boolean[] isNull,
int start,
int end) |
protected long |
countNonNulls(long rows) |
protected static IntegerReader |
createIntegerReader(OrcProto.ColumnEncoding.Kind kind,
InStream in,
boolean signed,
TreeReaderFactory.Context context) |
int |
getColumnId() |
BitFieldReader |
getPresent() |
TypeReader.ReaderCategory |
getReaderCategory() |
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 |
seek(PositionProvider index,
TypeReader.ReadPhase readPhase) |
void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldProcessChild, skipRowsprotected final int columnId
protected BitFieldReader present
protected final TreeReaderFactory.Context context
protected final TypeReader.ReaderCategory readerCategory
protected TreeReader(int columnId,
InStream in,
@NotNull
@NotNull TreeReaderFactory.Context context)
throws IOException
IOExceptionpublic TypeReader.ReaderCategory getReaderCategory()
getReaderCategory in interface TypeReaderpublic void checkEncoding(OrcProto.ColumnEncoding encoding) throws IOException
checkEncoding in interface TypeReaderIOExceptionprotected static IntegerReader createIntegerReader(OrcProto.ColumnEncoding.Kind kind, InStream in, boolean signed, TreeReaderFactory.Context context) throws IOException
IOExceptionpublic void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
startStripe in interface TypeReaderIOExceptionpublic void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
seek in interface TypeReaderindex - the indexes loaded from the filereadPhase - the current readPhaseIOExceptionpublic void seek(PositionProvider index, TypeReader.ReadPhase readPhase) throws IOException
seek in interface TypeReaderIOExceptionprotected static int countNonNullRowsInRange(boolean[] isNull,
int start,
int end)
protected long countNonNulls(long rows)
throws IOException
IOExceptionpublic void nextVector(ColumnVector previous, boolean[] isNull, int batchSize, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, TypeReader.ReadPhase readPhase) throws IOException
nextVector in interface TypeReaderprevious - 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 BitFieldReader getPresent()
public int getColumnId()
getColumnId in interface TypeReaderCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.