Class CachingOrcDataSource
java.lang.Object
io.trino.orc.CachingOrcDataSource
- All Implemented Interfaces:
OrcDataSource,Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCachingOrcDataSource(OrcDataSource dataSource, CachingOrcDataSource.RegionFinder regionFinder) -
Method Summary
-
Constructor Details
-
CachingOrcDataSource
public CachingOrcDataSource(OrcDataSource dataSource, CachingOrcDataSource.RegionFinder regionFinder)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceOrcDataSource
-
getReadBytes
public long getReadBytes()- Specified by:
getReadBytesin interfaceOrcDataSource
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceOrcDataSource
-
getEstimatedSize
public 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
- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceOrcDataSource- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceOrcDataSource- Throws:
IOException
-
toString
-