Package org.apache.orc.impl
Class RunLengthIntegerReaderV2
java.lang.Object
org.apache.orc.impl.RunLengthIntegerReaderV2
- All Implemented Interfaces:
IntegerReader
A reader that reads a sequence of light weight compressed integers. Refer
RunLengthIntegerWriterV2 for description of various lightweight
compression techniques.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRunLengthIntegerReaderV2(InStream input, boolean signed, boolean skipCorrupt) -
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.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
RunLengthIntegerReaderV2
public RunLengthIntegerReaderV2(InStream input, boolean signed, boolean skipCorrupt) throws IOException - 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
-
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
-
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
-