Package io.trino.parquet
Class AbstractParquetDataSource
java.lang.Object
io.trino.parquet.AbstractParquetDataSource
- All Implemented Interfaces:
ParquetDataSource,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractParquetDataSource(ParquetDataSourceId id, long estimatedSize, ParquetReaderOptions options) -
Method Summary
Modifier and TypeMethodDescriptionfinal longgetId()final longfinal long<K> com.google.common.collect.ListMultimap<K,ChunkReader> planChunksRead(com.google.common.collect.ListMultimap<K, DiskRange> diskRanges, AggregatedMemoryContext memoryContext) final <K> Map<K,ChunkedInputStream> planRead(com.google.common.collect.ListMultimap<K, DiskRange> diskRanges, AggregatedMemoryContext memoryContext) final io.airlift.slice.SlicereadFully(long position, int length) protected abstract voidreadInternal(long position, byte[] buffer, int bufferOffset, int bufferLength) io.airlift.slice.SlicereadTail(int length) protected io.airlift.slice.SlicereadTailInternal(int length) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.parquet.ParquetDataSource
close
-
Constructor Details
-
AbstractParquetDataSource
protected AbstractParquetDataSource(ParquetDataSourceId id, long estimatedSize, ParquetReaderOptions options)
-
-
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 interfaceParquetDataSource
-
getReadBytes
public final long getReadBytes()- Specified by:
getReadBytesin interfaceParquetDataSource
-
getReadTimeNanos
public final long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceParquetDataSource
-
getEstimatedSize
public final long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceParquetDataSource
-
readTail
- Specified by:
readTailin interfaceParquetDataSource- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceParquetDataSource- Throws:
IOException
-
planRead
public final <K> Map<K,ChunkedInputStream> planRead(com.google.common.collect.ListMultimap<K, DiskRange> diskRanges, AggregatedMemoryContext memoryContext) - Specified by:
planReadin interfaceParquetDataSource
-
planChunksRead
public <K> com.google.common.collect.ListMultimap<K,ChunkReader> planChunksRead(com.google.common.collect.ListMultimap<K, DiskRange> diskRanges, AggregatedMemoryContext memoryContext)
-