Package io.trino.orc.stream
Class ByteInputStream
- java.lang.Object
-
- io.trino.orc.stream.ByteInputStream
-
- All Implemented Interfaces:
ValueInputStream<ByteStreamCheckpoint>
public class ByteInputStream extends Object implements ValueInputStream<ByteStreamCheckpoint>
-
-
Constructor Summary
Constructors Constructor Description ByteInputStream(OrcInputStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytenext()voidnext(byte[] values, int items)byte[]next(int items)voidseekToCheckpoint(ByteStreamCheckpoint checkpoint)voidskip(long items)
-
-
-
Constructor Detail
-
ByteInputStream
public ByteInputStream(OrcInputStream input)
-
-
Method Detail
-
seekToCheckpoint
public void seekToCheckpoint(ByteStreamCheckpoint checkpoint) throws IOException
- Specified by:
seekToCheckpointin interfaceValueInputStream<ByteStreamCheckpoint>- Throws:
IOException
-
skip
public void skip(long items) throws IOException- Specified by:
skipin interfaceValueInputStream<ByteStreamCheckpoint>- Throws:
IOException
-
next
public byte next() throws IOException- Throws:
IOException
-
next
public byte[] next(int items) throws IOException- Throws:
IOException
-
next
public void next(byte[] values, int items) throws IOException- Throws:
IOException
-
-