Package io.trino.plugin.deltalake
Class DeltaLakePageSink
- java.lang.Object
-
- io.trino.plugin.deltalake.DeltaLakePageSink
-
- All Implemented Interfaces:
ConnectorPageSink
public class DeltaLakePageSink extends Object implements ConnectorPageSink
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSink
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description DeltaLakePageSink(List<DeltaLakeColumnHandle> inputColumns, List<String> originalPartitionColumns, PageIndexerFactory pageIndexerFactory, HdfsEnvironment hdfsEnvironment, int maxOpenWriters, io.airlift.json.JsonCodec<DataFileInfo> dataFileInfoCodec, String outputPath, ConnectorSession session, DeltaLakeWriterStats stats, TypeManager typeManager, String trinoVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()CompletableFuture<?>appendPage(Page page)static List<String>createPartitionValues(List<Type> partitionColumnTypes, Page partitionColumns, int position)CompletableFuture<Collection<io.airlift.slice.Slice>>finish()longgetCompletedBytes()longgetMemoryUsage()longgetValidationCpuNanos()
-
-
-
Constructor Detail
-
DeltaLakePageSink
public DeltaLakePageSink(List<DeltaLakeColumnHandle> inputColumns, List<String> originalPartitionColumns, PageIndexerFactory pageIndexerFactory, HdfsEnvironment hdfsEnvironment, int maxOpenWriters, io.airlift.json.JsonCodec<DataFileInfo> dataFileInfoCodec, String outputPath, ConnectorSession session, DeltaLakeWriterStats stats, TypeManager typeManager, String trinoVersion)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSink
-
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsagein 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
-
-