Package io.trino.orc.stream
Interface OrcDataReader
- All Known Implementing Classes:
AbstractDiskOrcDataReader,MemoryOrcDataReader
public interface OrcDataReader
-
Method Summary
Modifier and TypeMethodDescriptionintMaximum size of the buffer returned fromseekBuffer(int).longGets 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 Details
-
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
Returns 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
-