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
IOException
public boolean hasNext() throws IOException
IntegerReader
hasNext
in interface IntegerReader
IOException
public long next() throws IOException
IntegerReader
next
in interface IntegerReader
IOException
public void nextVector(ColumnVector previous, long[] data, int previousLen) throws IOException
IntegerReader
nextVector
in interface IntegerReader
previous
- the column being readdata
- the vector to read intopreviousLen
- the number of numbers to readIOException
public void nextVector(ColumnVector vector, int[] data, int size) throws IOException
IntegerReader
nextVector
in interface IntegerReader
vector
- the column being readdata
- the vector to read intosize
- the number of numbers to readIOException
public void seek(PositionProvider index) throws IOException
IntegerReader
seek
in interface IntegerReader
IOException
public void skip(long numValues) throws IOException
IntegerReader
skip
in interface IntegerReader
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.