Package org.apache.orc.impl
Class RunLengthByteReader
java.lang.Object
org.apache.orc.impl.RunLengthByteReader
A reader that reads a sequence of bytes. A control byte is read before
each run with positive values 0 to 127 meaning 3 to 130 repetitions. If the
byte is -1 to -128, 1 to 128 literal byte values follow.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
byte
next()
void
nextVector
(boolean[] isNull, int[] data, long size) Read the next size bytes into the data array, skipping over any slots where isNull is true.void
nextVector
(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, long size) void
seek
(PositionProvider index) void
setInStream
(InStream input) void
skip
(long items) toString()
-
Constructor Details
-
RunLengthByteReader
-
-
Method Details
-
setInStream
-
hasNext
- Throws:
IOException
-
next
- Throws:
IOException
-
nextVector
public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, long size) throws IOException - Throws:
IOException
-
nextVector
Read the next size bytes into the data array, skipping over any slots where isNull is true.- Parameters:
isNull
- if non-null, skip any rows where isNull[r] is truedata
- the array to read intosize
- the number of elements to read- Throws:
IOException
-
seek
- Throws:
IOException
-
skip
- Throws:
IOException
-
toString
-