Package org.apache.orc.impl
Class ConvertTreeReaderFactory.AnyIntegerFromStringGroupTreeReader
java.lang.Object
org.apache.orc.impl.TreeReaderFactory.TreeReader
org.apache.orc.impl.ConvertTreeReaderFactory.ConvertTreeReader
org.apache.orc.impl.ConvertTreeReaderFactory.AnyIntegerFromStringGroupTreeReader
- All Implemented Interfaces:
TypeReader
- Enclosing class:
- ConvertTreeReaderFactory
public static class ConvertTreeReaderFactory.AnyIntegerFromStringGroupTreeReader
extends ConvertTreeReaderFactory.ConvertTreeReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.orc.impl.reader.tree.TypeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase -
Field Summary
Fields inherited from class org.apache.orc.impl.TreeReaderFactory.TreeReader
columnId, context, present, readerCategory -
Method Summary
Modifier and TypeMethodDescriptionvoidnextVector(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.voidsetConvertVectorElement(int elementNum) Override this to use convertVector.Methods inherited from class org.apache.orc.impl.ConvertTreeReaderFactory.ConvertTreeReader
assignStringGroupVectorEntry, assignStringGroupVectorEntry, checkEncoding, convertStringGroupVectorElement, convertVector, doubleCanFitInLong, downCastAnyInteger, downCastAnyInteger, getIsParseError, integerDownCastNeeded, parseDecimalFromString, parseDoubleFromString, parseFloatFromString, parseLongFromString, seek, seek, skipRows, startStripeMethods inherited from class org.apache.orc.impl.TreeReaderFactory.TreeReader
countNonNullRowsInRange, countNonNulls, createIntegerReader, getColumnId, getPresent, getReaderCategory
-
Method Details
-
setConvertVectorElement
Description copied from class:ConvertTreeReaderFactory.ConvertTreeReaderOverride this to use convertVector. Source and result are member variables in the subclass with the right type.- Overrides:
setConvertVectorElementin classConvertTreeReaderFactory.ConvertTreeReader- 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
-