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