Package org.apache.orc.impl
Interface IntegerReader
- All Known Implementing Classes:
RunLengthIntegerReader,RunLengthIntegerReaderV2
public interface IntegerReader
Interface for reading integers.
-
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 column, int[] data, int length) Return the next available vector for values.voidnextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, long[] data, int length) 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.
-
Method Details
-
seek
Seek to the position provided by index.- Parameters:
index-- Throws:
IOException
-
skip
Skip number of specified rows.- Parameters:
numValues-- Throws:
IOException
-
hasNext
Check if there are any more values left.- Returns:
- Throws:
IOException
-
next
Return the next available value.- Returns:
- Throws:
IOException
-
nextVector
void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, long[] data, int length) throws IOException Return the next available vector for values.- Parameters:
column- the column being readdata- the vector to read intolength- the number of numbers to read- Throws:
IOException
-
nextVector
void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, int[] data, int length) throws IOException Return the next available vector for values. Does not change the value of column.isRepeating.- Parameters:
column- the column being readdata- the vector to read intolength- the number of numbers to read- Throws:
IOException
-