Package io.trino.orc.stream
Class OrcInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.trino.orc.stream.OrcInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class OrcInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description OrcInputStream(OrcChunkLoader chunkLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()longgetCheckpoint()OrcDataSourceIdgetOrcDataSourceId()booleanmarkSupported()intread()intread(byte[] b, int off, int length)voidreadFully(byte[] buffer, int offset, int length)voidreadFully(io.airlift.slice.Slice buffer, int offset, int length)voidseekToCheckpoint(long checkpoint)longskip(long n)voidskipFully(long length)StringtoString()-
Methods inherited from class java.io.InputStream
mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Constructor Detail
-
OrcInputStream
public OrcInputStream(OrcChunkLoader chunkLoader)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
available
public int available()
- Overrides:
availablein classInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int length) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skipFully
public void skipFully(long length) throws IOException- Throws:
IOException
-
readFully
public void readFully(byte[] buffer, int offset, int length) throws IOException- Throws:
IOException
-
readFully
public void readFully(io.airlift.slice.Slice buffer, int offset, int length) throws IOException- Throws:
IOException
-
getOrcDataSourceId
public OrcDataSourceId getOrcDataSourceId()
-
getCheckpoint
public long getCheckpoint()
-
seekToCheckpoint
public void seekToCheckpoint(long checkpoint) throws IOException- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
-