Package io.trino.plugin.hive.orc
Class OrcPageSource
- java.lang.Object
-
- io.trino.plugin.hive.orc.OrcPageSource
-
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
public class OrcPageSource extends Object implements ConnectorPageSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrcPageSource.ColumnAdaptation
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description OrcPageSource(OrcRecordReader recordReader, List<OrcPageSource.ColumnAdaptation> columnAdaptations, OrcDataSource orcDataSource, Optional<OrcDeletedRows> deletedRows, Optional<Long> originalFileRowId, AggregatedMemoryContext systemMemoryContext, FileFormatDataSourceStats stats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ColumnMetadata<OrcType>getColumnTypes()longgetCompletedBytes()OptionalLonggetCompletedPositions()PagegetNextPage()longgetReadTimeNanos()longgetSystemMemoryUsage()booleanisFinished()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorPageSource
getMetrics, isBlocked
-
-
-
-
Constructor Detail
-
OrcPageSource
public OrcPageSource(OrcRecordReader recordReader, List<OrcPageSource.ColumnAdaptation> columnAdaptations, OrcDataSource orcDataSource, Optional<OrcDeletedRows> deletedRows, Optional<Long> originalFileRowId, AggregatedMemoryContext systemMemoryContext, FileFormatDataSourceStats stats)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getCompletedPositions
public OptionalLong getCompletedPositions()
- Specified by:
getCompletedPositionsin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceConnectorPageSource
-
getColumnTypes
public ColumnMetadata<OrcType> getColumnTypes()
-
getNextPage
public Page getNextPage()
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceConnectorPageSource
-
-