Package org.apache.orc.impl
Class TreeReaderFactory.TimestampTreeReader
java.lang.Object
org.apache.orc.impl.TreeReaderFactory.TreeReader
org.apache.orc.impl.TreeReaderFactory.TimestampTreeReader
- All Implemented Interfaces:
TypeReader
- Enclosing class:
- TreeReaderFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.orc.impl.reader.tree.TypeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase -
Field Summary
FieldsFields inherited from class org.apache.orc.impl.TreeReaderFactory.TreeReader
columnId, context, present, readerCategory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTimestampTreeReader(int columnId, InStream presentStream, InStream dataStream, InStream nanosStream, OrcProto.ColumnEncoding encoding, TreeReaderFactory.Context context, boolean instantType) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckEncoding(OrcProto.ColumnEncoding encoding) protected longgetBaseTimestamp(String timeZoneId) voidnextVector(org.apache.hadoop.hive.ql.exec.vector.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.voidnextVector(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, boolean[] isNull, int batchSize) voidnextVector(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, boolean[] isNull, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, int batchSize) voidreadTimestamp(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, int idx) voidseek(PositionProvider[] index, TypeReader.ReadPhase readPhase) Seek to the given position.voidseek(PositionProvider index, TypeReader.ReadPhase readPhase) voidskipRows(long items, TypeReader.ReadPhase readPhase) voidstartStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) Methods inherited from class org.apache.orc.impl.TreeReaderFactory.TreeReader
countNonNullRowsInRange, countNonNulls, createIntegerReader, getColumnId, getPresent, getReaderCategory
-
Field Details
-
data
-
nanos
-
base_timestamp
protected long base_timestamp
-
-
Constructor Details
-
TimestampTreeReader
protected TimestampTreeReader(int columnId, InStream presentStream, InStream dataStream, InStream nanosStream, OrcProto.ColumnEncoding encoding, TreeReaderFactory.Context context, boolean instantType) throws IOException - Throws:
IOException
-
-
Method Details
-
checkEncoding
- Specified by:
checkEncodingin interfaceTypeReader- Overrides:
checkEncodingin classTreeReaderFactory.TreeReader- Throws:
IOException
-
startStripe
- Specified by:
startStripein interfaceTypeReader- Overrides:
startStripein classTreeReaderFactory.TreeReader- Throws:
IOException
-
getBaseTimestamp
- Throws:
IOException
-
seek
Description copied from class:TreeReaderFactory.TreeReaderSeek to the given position.- Specified by:
seekin interfaceTypeReader- Overrides:
seekin classTreeReaderFactory.TreeReader- Parameters:
index- the indexes loaded from the filereadPhase- the current readPhase- Throws:
IOException
-
seek
- Specified by:
seekin interfaceTypeReader- Overrides:
seekin classTreeReaderFactory.TreeReader- Throws:
IOException
-
readTimestamp
public void readTimestamp(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, int idx) throws IOException - Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, boolean[] isNull, int batchSize) throws IOException - Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.TimestampColumnVector result, boolean[] isNull, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, int batchSize) throws IOException - Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previousVector, boolean[] isNull, int batchSize, org.apache.hadoop.hive.ql.io.filter.FilterContext filterContext, TypeReader.ReadPhase readPhase) throws IOException Description copied from class:TreeReaderFactory.TreeReaderPopulates the isNull vector array in the previousVector object based on the present stream values. This function is called from all the child readers, and they all set the values based on isNull field value.- Specified by:
nextVectorin interfaceTypeReader- Overrides:
nextVectorin classTreeReaderFactory.TreeReader- Parameters:
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 level- Throws:
IOException
-
skipRows
- Throws:
IOException
-