Package io.trino.orc.stream
Interface OrcDataReader
-
- All Known Implementing Classes:
AbstractDiskOrcDataReader,MemoryOrcDataReader
public interface OrcDataReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaxBufferSize()Maximum size of the buffer returned fromseekBuffer(int).OrcDataSourceIdgetOrcDataSourceId()longgetRetainedSize()Gets the memory size of this instance.intgetSize()Total size of the data that can be accessed withseekBuffer(int).io.airlift.slice.SliceseekBuffer(int position)Returns a buffer of the data starting at the specified position.
-
-
-
Method Detail
-
getOrcDataSourceId
OrcDataSourceId getOrcDataSourceId()
-
getRetainedSize
long getRetainedSize()
Gets the memory size of this instance.
-
getSize
int getSize()
Total size of the data that can be accessed withseekBuffer(int).
-
getMaxBufferSize
int getMaxBufferSize()
Maximum size of the buffer returned fromseekBuffer(int).
-
seekBuffer
io.airlift.slice.Slice seekBuffer(int position) throws IOExceptionReturns a buffer of the data starting at the specified position. This will return a buffer ofgetMaxBufferSize(), unless near the end of the data.- Throws:
IOException
-
-