Package io.trino.orc
Class AbstractOrcDataSource
- java.lang.Object
-
- io.trino.orc.AbstractOrcDataSource
-
- All Implemented Interfaces:
OrcDataSource,Closeable,AutoCloseable
- Direct Known Subclasses:
FileOrcDataSource
public abstract class AbstractOrcDataSource extends Object implements OrcDataSource
-
-
Constructor Summary
Constructors Constructor Description AbstractOrcDataSource(OrcDataSourceId id, long estimatedSize, OrcReaderOptions options)
-
Method Summary
All Methods Instance Methods Abstract 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)protected abstract voidreadInternal(long position, byte[] buffer, int bufferOffset, int bufferLength)io.airlift.slice.SlicereadTail(int length)protected io.airlift.slice.SlicereadTailInternal(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
-
AbstractOrcDataSource
public AbstractOrcDataSource(OrcDataSourceId id, long estimatedSize, OrcReaderOptions options)
-
-
Method Detail
-
readTailInternal
protected io.airlift.slice.Slice readTailInternal(int length) throws IOException- Throws:
IOException
-
readInternal
protected abstract void readInternal(long position, byte[] buffer, int bufferOffset, int bufferLength) throws IOException- Throws:
IOException
-
getId
public OrcDataSourceId getId()
- Specified by:
getIdin interfaceOrcDataSource
-
getReadBytes
public final long getReadBytes()
- Specified by:
getReadBytesin interfaceOrcDataSource
-
getReadTimeNanos
public final long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceOrcDataSource
-
getEstimatedSize
public final long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceOrcDataSource
-
readTail
public io.airlift.slice.Slice readTail(int length) throws IOException- Specified by:
readTailin interfaceOrcDataSource- Throws:
IOException
-
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
-
readFully
public final io.airlift.slice.Slice readFully(long position, int length) throws IOException- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
readFully
public final <K> Map<K,OrcDataReader> readFully(Map<K,DiskRange> diskRanges) throws IOException
- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
-