Package io.trino.plugin.hive
Class HivePageSink
- java.lang.Object
-
- io.trino.plugin.hive.HivePageSink
-
- All Implemented Interfaces:
ConnectorPageSink
public class HivePageSink extends Object implements ConnectorPageSink
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSink
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description HivePageSink(HiveWriterFactory writerFactory, List<HiveColumnHandle> inputColumns, Optional<HiveBucketProperty> bucketProperty, PageIndexerFactory pageIndexerFactory, HdfsEnvironment hdfsEnvironment, int maxOpenWriters, com.google.common.util.concurrent.ListeningExecutorService writeVerificationExecutor, io.airlift.json.JsonCodec<PartitionUpdate> partitionUpdateCodec, ConnectorSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()CompletableFuture<?>appendPage(Page page)CompletableFuture<Collection<io.airlift.slice.Slice>>finish()longgetCompletedBytes()longgetSystemMemoryUsage()longgetValidationCpuNanos()
-
-
-
Constructor Detail
-
HivePageSink
public HivePageSink(HiveWriterFactory writerFactory, List<HiveColumnHandle> inputColumns, Optional<HiveBucketProperty> bucketProperty, PageIndexerFactory pageIndexerFactory, HdfsEnvironment hdfsEnvironment, int maxOpenWriters, com.google.common.util.concurrent.ListeningExecutorService writeVerificationExecutor, io.airlift.json.JsonCodec<PartitionUpdate> partitionUpdateCodec, ConnectorSession session)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSink
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceConnectorPageSink
-
getValidationCpuNanos
public long getValidationCpuNanos()
- Specified by:
getValidationCpuNanosin interfaceConnectorPageSink
-
finish
public CompletableFuture<Collection<io.airlift.slice.Slice>> finish()
- Specified by:
finishin interfaceConnectorPageSink
-
abort
public void abort()
- Specified by:
abortin interfaceConnectorPageSink
-
appendPage
public CompletableFuture<?> appendPage(Page page)
- Specified by:
appendPagein interfaceConnectorPageSink
-
-