Package io.trino.orc
Interface OrcDataSource
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractOrcDataSource,CachingOrcDataSource,FileOrcDataSource,MemoryOrcDataSource
public interface OrcDataSource extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()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)
-
-
-
Method Detail
-
getId
OrcDataSourceId getId()
-
getReadBytes
long getReadBytes()
-
getReadTimeNanos
long getReadTimeNanos()
-
getEstimatedSize
long getEstimatedSize()
-
getRetainedSize
long getRetainedSize()
Gets the memory size of this data source. This only includes memory used for the data source and not memory assigned to a specific OrcDataReader.
-
readTail
io.airlift.slice.Slice readTail(int length) throws IOException- Throws:
IOException
-
readFully
io.airlift.slice.Slice readFully(long position, int length) throws IOException- Throws:
IOException
-
readFully
<K> Map<K,OrcDataReader> readFully(Map<K,DiskRange> diskRanges) throws IOException
- Throws:
IOException
-
close
default void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-