Package io.trino.orc.stream
Class MemoryOrcDataReader
java.lang.Object
io.trino.orc.stream.MemoryOrcDataReader
- All Implemented Interfaces:
OrcDataReader
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryOrcDataReader(OrcDataSourceId orcDataSourceId, io.airlift.slice.Slice data, long retainedSize) -
Method Summary
Modifier and TypeMethodDescriptionintMaximum size of the buffer returned fromOrcDataReader.seekBuffer(int).longGets the memory size of this instance.intgetSize()Total size of the data that can be accessed withOrcDataReader.seekBuffer(int).io.airlift.slice.SliceseekBuffer(int newPosition) Returns a buffer of the data starting at the specified position.toString()
-
Constructor Details
-
MemoryOrcDataReader
public MemoryOrcDataReader(OrcDataSourceId orcDataSourceId, io.airlift.slice.Slice data, long retainedSize)
-
-
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 int getSize()Description copied from interface:OrcDataReaderTotal size of the data that can be accessed withOrcDataReader.seekBuffer(int).- Specified by:
getSizein interfaceOrcDataReader
-
getMaxBufferSize
public int getMaxBufferSize()Description copied from interface:OrcDataReaderMaximum size of the buffer returned fromOrcDataReader.seekBuffer(int).- Specified by:
getMaxBufferSizein interfaceOrcDataReader
-
seekBuffer
public io.airlift.slice.Slice seekBuffer(int newPosition) 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
-
toString
-