public class RunLengthIntegerReader extends Object implements IntegerReader
| Constructor and Description |
|---|
RunLengthIntegerReader(InStream input,
boolean signed) |
| 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 RunLengthIntegerReader(InStream input, boolean signed) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IntegerReaderhasNext in interface IntegerReaderIOExceptionpublic long next()
throws IOException
IntegerReadernext 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 readIOExceptionpublic void seek(PositionProvider index) throws IOException
IntegerReaderseek in interface IntegerReaderIOExceptionpublic void skip(long numValues)
throws IOException
IntegerReaderskip in interface IntegerReaderIOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.