Package io.trino.plugin.hive
Class HivePageSource
java.lang.Object
io.trino.plugin.hive.HivePageSource
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionHivePageSource(List<HivePageSourceProvider.ColumnMapping> columnMappings, Optional<HivePageSourceProvider.BucketAdaptation> bucketAdaptation, Optional<HivePageSource.BucketValidator> bucketValidator, Optional<ReaderProjectionsAdapter> projectionsAdapter, TypeManager typeManager, HiveTimestampPrecision timestampPrecision, ConnectorPageSource delegate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorPageSource
isBlocked
-
Field Details
-
ORIGINAL_TRANSACTION_CHANNEL
public static final int ORIGINAL_TRANSACTION_CHANNEL- See Also:
-
BUCKET_CHANNEL
public static final int BUCKET_CHANNEL- See Also:
-
ROW_ID_CHANNEL
public static final int ROW_ID_CHANNEL- See Also:
-
-
Constructor Details
-
HivePageSource
public HivePageSource(List<HivePageSourceProvider.ColumnMapping> columnMappings, Optional<HivePageSourceProvider.BucketAdaptation> bucketAdaptation, Optional<HivePageSource.BucketValidator> bucketValidator, Optional<ReaderProjectionsAdapter> projectionsAdapter, TypeManager typeManager, HiveTimestampPrecision timestampPrecision, ConnectorPageSource delegate)
-
-
Method Details
-
getDelegate
-
getCompletedBytes
public long getCompletedBytes()- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getCompletedPositions
- Specified by:
getCompletedPositionsin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceConnectorPageSource
-
getNextPage
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
toString
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-
getMetrics
- Specified by:
getMetricsin interfaceConnectorPageSource
-
getPageSource
-