Package io.trino.orc
Class MemoryOrcDataSource
- java.lang.Object
-
- io.trino.orc.MemoryOrcDataSource
-
- All Implemented Interfaces:
OrcDataSource,Closeable,AutoCloseable
public class MemoryOrcDataSource extends Object implements OrcDataSource
-
-
Constructor Summary
Constructors Constructor Description MemoryOrcDataSource(OrcDataSourceId id, io.airlift.slice.Slice data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEstimatedSize()OrcDataSourceIdgetId()longgetReadBytes()longgetReadTimeNanos()longgetRetainedSize()Gets the memory size of this data source.io.airlift.slice.SlicereadFully(long position, int length)<K> Map<K,OrcDataReader>readFully(Map<K,DiskRange> diskRanges)io.airlift.slice.SlicereadTail(int length)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.orc.OrcDataSource
close
-
-
-
-
Constructor Detail
-
MemoryOrcDataSource
public MemoryOrcDataSource(OrcDataSourceId id, io.airlift.slice.Slice data)
-
-
Method Detail
-
getId
public OrcDataSourceId getId()
- Specified by:
getIdin interfaceOrcDataSource
-
getReadBytes
public long getReadBytes()
- Specified by:
getReadBytesin interfaceOrcDataSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceOrcDataSource
-
getEstimatedSize
public final long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceOrcDataSource
-
getRetainedSize
public long getRetainedSize()
Description copied from interface:OrcDataSourceGets the memory size of this data source. This only includes memory used for the data source and not memory assigned to a specific OrcDataReader.- Specified by:
getRetainedSizein interfaceOrcDataSource
-
readTail
public io.airlift.slice.Slice readTail(int length)
- Specified by:
readTailin interfaceOrcDataSource
-
readFully
public final io.airlift.slice.Slice readFully(long position, int length)- Specified by:
readFullyin interfaceOrcDataSource
-
readFully
public final <K> Map<K,OrcDataReader> readFully(Map<K,DiskRange> diskRanges)
- Specified by:
readFullyin interfaceOrcDataSource
-
-