Class AbstractDiskOrcDataReader
java.lang.Object
io.trino.orc.stream.AbstractDiskOrcDataReader
- All Implemented Interfaces:
OrcDataReader
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDiskOrcDataReader(OrcDataSourceId orcDataSourceId, int dataSize, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionfinal intMaximum size of the buffer returned fromOrcDataReader.seekBuffer(int).final OrcDataSourceIdlongGets the memory size of this instance.final intgetSize()Total size of the data that can be accessed withOrcDataReader.seekBuffer(int).abstract voidread(long position, byte[] buffer, int bufferOffset, int length) final io.airlift.slice.SliceseekBuffer(int newPosition) Returns a buffer of the data starting at the specified position.toString()
-
Constructor Details
-
AbstractDiskOrcDataReader
-
-
Method Details
-
getOrcDataSourceId
- Specified by:
getOrcDataSourceIdin interfaceOrcDataReader
-
getRetainedSize
public long getRetainedSize()Description copied from interface:OrcDataReaderGets the memory size of this instance.- Specified by:
getRetainedSizein interfaceOrcDataReader
-
getSize
public final int getSize()Description copied from interface:OrcDataReaderTotal size of the data that can be accessed withOrcDataReader.seekBuffer(int).- Specified by:
getSizein interfaceOrcDataReader
-
getMaxBufferSize
public final int getMaxBufferSize()Description copied from interface:OrcDataReaderMaximum size of the buffer returned fromOrcDataReader.seekBuffer(int).- Specified by:
getMaxBufferSizein interfaceOrcDataReader
-
seekBuffer
Description copied from interface:OrcDataReaderReturns a buffer of the data starting at the specified position. This will return a buffer ofOrcDataReader.getMaxBufferSize(), unless near the end of the data.- Specified by:
seekBufferin interfaceOrcDataReader- Throws:
IOException
-
read
public abstract void read(long position, byte[] buffer, int bufferOffset, int length) throws IOException - Throws:
IOException
-
toString
-