Package org.apache.orc.impl
Class RunLengthIntegerReader
java.lang.Object
org.apache.orc.impl.RunLengthIntegerReader
- All Implemented Interfaces:
IntegerReader
A reader that reads a sequence of integers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Check if there are any more values left.longnext()Return the next available value.voidnextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int[] data, int size) Return the next available vector for values.voidnextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, int previousLen) Return the next available vector for values.voidseek(PositionProvider index) Seek to the position provided by index.voidskip(long numValues) Skip number of specified rows.
-
Constructor Details
-
RunLengthIntegerReader
- Throws:
IOException
-
-
Method Details
-
hasNext
Description copied from interface:IntegerReaderCheck if there are any more values left.- Specified by:
hasNextin interfaceIntegerReader- Returns:
- Throws:
IOException
-
next
Description copied from interface:IntegerReaderReturn the next available value.- Specified by:
nextin interfaceIntegerReader- Returns:
- Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, int previousLen) throws IOException Description copied from interface:IntegerReaderReturn the next available vector for values.- Specified by:
nextVectorin interfaceIntegerReader- Parameters:
previous- the column being readdata- the vector to read intopreviousLen- the number of numbers to read- Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int[] data, int size) throws IOException Description copied from interface:IntegerReaderReturn the next available vector for values. Does not change the value of column.isRepeating.- Specified by:
nextVectorin interfaceIntegerReader- Parameters:
vector- the column being readdata- the vector to read intosize- the number of numbers to read- Throws:
IOException
-
seek
Description copied from interface:IntegerReaderSeek to the position provided by index.- Specified by:
seekin interfaceIntegerReader- Throws:
IOException
-
skip
Description copied from interface:IntegerReaderSkip number of specified rows.- Specified by:
skipin interfaceIntegerReader- Throws:
IOException
-