public class RunLengthIntegerReaderV2 extends Object implements IntegerReader
RunLengthIntegerWriterV2 for description of various lightweight
compression techniques.| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
RunLengthIntegerReaderV2(InStream input,
boolean signed,
boolean skipCorrupt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Check if there are any more values left.
|
long |
next()
Return the next available value.
|
void |
nextVector(ColumnVector vector,
int[] data,
int size)
Return the next available vector for values.
|
void |
nextVector(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.
|
public RunLengthIntegerReaderV2(InStream input, boolean signed, boolean skipCorrupt) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IntegerReaderhasNext in interface IntegerReaderIOExceptionpublic long next()
throws IOException
IntegerReadernext in interface IntegerReaderIOExceptionpublic void seek(PositionProvider index) throws IOException
IntegerReaderseek in interface IntegerReaderIOExceptionpublic void skip(long numValues)
throws IOException
IntegerReaderskip in interface IntegerReaderIOExceptionpublic void nextVector(ColumnVector previous, long[] data, int previousLen) throws IOException
IntegerReadernextVector in interface IntegerReaderprevious - the column being readdata - the vector to read intopreviousLen - the number of numbers to readIOExceptionpublic void nextVector(ColumnVector vector, int[] data, int size) throws IOException
IntegerReadernextVector in interface IntegerReadervector - the column being readdata - the vector to read intosize - the number of numbers to readIOExceptionCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.