Package io.trino.orc.stream
Class MemoryOrcDataReader
- java.lang.Object
-
- io.trino.orc.stream.MemoryOrcDataReader
-
- All Implemented Interfaces:
OrcDataReader
public class MemoryOrcDataReader extends Object implements OrcDataReader
-
-
Constructor Summary
Constructors Constructor Description MemoryOrcDataReader(OrcDataSourceId orcDataSourceId, io.airlift.slice.Slice data, long retainedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxBufferSize()Maximum size of the buffer returned fromOrcDataReader.seekBuffer(int).OrcDataSourceIdgetOrcDataSourceId()longgetRetainedSize()Gets 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.StringtoString()
-
-
-
Constructor Detail
-
MemoryOrcDataReader
public MemoryOrcDataReader(OrcDataSourceId orcDataSourceId, io.airlift.slice.Slice data, long retainedSize)
-
-
Method Detail
-
getOrcDataSourceId
public OrcDataSourceId 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
-
-