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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Check if there are any more values left.long
next()
Return the next available value.void
nextVector
(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int[] data, int size) Return the next available vector for values.void
nextVector
(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, int previousLen) Return the next available vector for values.void
seek
(PositionProvider index) Seek to the position provided by index.void
skip
(long numValues) Skip number of specified rows.
-
Constructor Details
-
RunLengthIntegerReader
- Throws:
IOException
-
-
Method Details
-
hasNext
Description copied from interface:IntegerReader
Check if there are any more values left.- Specified by:
hasNext
in interfaceIntegerReader
- Returns:
- Throws:
IOException
-
next
Description copied from interface:IntegerReader
Return the next available value.- Specified by:
next
in 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:IntegerReader
Return the next available vector for values.- Specified by:
nextVector
in 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:IntegerReader
Return the next available vector for values. Does not change the value of column.isRepeating.- Specified by:
nextVector
in 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:IntegerReader
Seek to the position provided by index.- Specified by:
seek
in interfaceIntegerReader
- Throws:
IOException
-
skip
Description copied from interface:IntegerReader
Skip number of specified rows.- Specified by:
skip
in interfaceIntegerReader
- Throws:
IOException
-