public static class TreeReaderFactory.TimestampTreeReader extends TreeReaderFactory.TreeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase
Modifier and Type | Field and Description |
---|---|
protected long |
base_timestamp |
protected IntegerReader |
data |
protected IntegerReader |
nanos |
columnId, context, present, readerCategory
Modifier | Constructor and Description |
---|---|
protected |
TimestampTreeReader(int columnId,
InStream presentStream,
InStream dataStream,
InStream nanosStream,
OrcProto.ColumnEncoding encoding,
TreeReaderFactory.Context context,
boolean instantType) |
Modifier and Type | Method and Description |
---|---|
void |
checkEncoding(OrcProto.ColumnEncoding encoding) |
protected long |
getBaseTimestamp(String timeZoneId) |
void |
nextVector(ColumnVector previousVector,
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 |
nextVector(TimestampColumnVector result,
boolean[] isNull,
org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext,
int batchSize) |
void |
nextVector(TimestampColumnVector result,
boolean[] isNull,
int batchSize) |
void |
readTimestamp(TimestampColumnVector result,
int idx) |
void |
seek(PositionProvider[] index,
TypeReader.ReadPhase readPhase)
Seek to the given position.
|
void |
seek(PositionProvider index,
TypeReader.ReadPhase readPhase) |
void |
skipRows(long items,
TypeReader.ReadPhase readPhase) |
void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
countNonNullRowsInRange, countNonNulls, createIntegerReader, getColumnId, getPresent, getReaderCategory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldProcessChild
protected IntegerReader data
protected IntegerReader nanos
protected long base_timestamp
protected TimestampTreeReader(int columnId, InStream presentStream, InStream dataStream, InStream nanosStream, OrcProto.ColumnEncoding encoding, TreeReaderFactory.Context context, boolean instantType) throws IOException
IOException
public void checkEncoding(OrcProto.ColumnEncoding encoding) throws IOException
checkEncoding
in interface TypeReader
checkEncoding
in class TreeReaderFactory.TreeReader
IOException
public void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
startStripe
in interface TypeReader
startStripe
in class TreeReaderFactory.TreeReader
IOException
protected long getBaseTimestamp(String timeZoneId) throws IOException
IOException
public void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
TreeReaderFactory.TreeReader
seek
in interface TypeReader
seek
in class TreeReaderFactory.TreeReader
index
- the indexes loaded from the filereadPhase
- the current readPhaseIOException
public void seek(PositionProvider index, TypeReader.ReadPhase readPhase) throws IOException
seek
in interface TypeReader
seek
in class TreeReaderFactory.TreeReader
IOException
public void readTimestamp(TimestampColumnVector result, int idx) throws IOException
IOException
public void nextVector(TimestampColumnVector result, boolean[] isNull, int batchSize) throws IOException
IOException
public void nextVector(TimestampColumnVector result, boolean[] isNull, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, int batchSize) throws IOException
IOException
public void nextVector(ColumnVector previousVector, boolean[] isNull, int batchSize, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, TypeReader.ReadPhase readPhase) throws IOException
TreeReaderFactory.TreeReader
nextVector
in interface TypeReader
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 vectorfilterContext
- the information about the rows that were selected
by the filter.readPhase
- The read levelIOException
public void skipRows(long items, TypeReader.ReadPhase readPhase) throws IOException
IOException
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.