Class AbstractOrcDataSource
java.lang.Object
io.trino.orc.AbstractOrcDataSource
- All Implemented Interfaces:
OrcDataSource,Closeable,AutoCloseable
- Direct Known Subclasses:
FileOrcDataSource
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractOrcDataSource(OrcDataSourceId id, long estimatedSize, OrcReaderOptions options) -
Method Summary
Modifier and TypeMethodDescriptionfinal longgetId()final longfinal longlongGets the memory size of this data source.final io.airlift.slice.SlicereadFully(long position, int length) final <K> Map<K, OrcDataReader> protected abstract voidreadInternal(long position, byte[] buffer, int bufferOffset, int bufferLength) io.airlift.slice.SlicereadTail(int length) protected io.airlift.slice.SlicereadTailInternal(int length) final StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.orc.OrcDataSource
close
-
Constructor Details
-
AbstractOrcDataSource
-
-
Method Details
-
readTailInternal
- Throws:
IOException
-
readInternal
protected abstract void readInternal(long position, byte[] buffer, int bufferOffset, int bufferLength) throws IOException - Throws:
IOException
-
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
- 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
- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
toString
-