Package io.trino.plugin.deltalake
Class DeltaLakeUpdatablePageSource
- java.lang.Object
-
- io.trino.plugin.deltalake.DeltaLakeUpdatablePageSource
-
- All Implemented Interfaces:
ConnectorPageSource,UpdatablePageSource,Closeable,AutoCloseable
public class DeltaLakeUpdatablePageSource extends Object implements UpdatablePageSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description DeltaLakeUpdatablePageSource(DeltaLakeTableHandle tableHandle, List<DeltaLakeColumnHandle> queryColumns, Map<String,Optional<String>> partitionKeys, String path, long fileSize, long fileModifiedTime, ConnectorSession session, ExecutorService executorService, HdfsEnvironment hdfsEnvironment, HdfsEnvironment.HdfsContext hdfsContext, org.joda.time.DateTimeZone parquetDateTimeZone, ParquetReaderOptions parquetReaderOptions, TupleDomain<HiveColumnHandle> parquetPredicate, TypeManager typeManager, io.airlift.json.JsonCodec<DeltaLakeUpdateResult> updateResultJsonCodec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voidclose()voiddeleteRows(Block rowIds)CompletableFuture<Collection<io.airlift.slice.Slice>>finish()longgetCompletedBytes()longgetMemoryUsage()PagegetNextPage()longgetReadTimeNanos()booleanisFinished()voidupdateRows(Page page, List<Integer> columnValueAndRowIdChannels)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorPageSource
getCompletedPositions, getMetrics, isBlocked
-
-
-
-
Constructor Detail
-
DeltaLakeUpdatablePageSource
public DeltaLakeUpdatablePageSource(DeltaLakeTableHandle tableHandle, List<DeltaLakeColumnHandle> queryColumns, Map<String,Optional<String>> partitionKeys, String path, long fileSize, long fileModifiedTime, ConnectorSession session, ExecutorService executorService, HdfsEnvironment hdfsEnvironment, HdfsEnvironment.HdfsContext hdfsContext, org.joda.time.DateTimeZone parquetDateTimeZone, ParquetReaderOptions parquetReaderOptions, TupleDomain<HiveColumnHandle> parquetPredicate, TypeManager typeManager, io.airlift.json.JsonCodec<DeltaLakeUpdateResult> updateResultJsonCodec)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceConnectorPageSource
-
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
getNextPage
public Page getNextPage()
- Specified by:
getNextPagein interfaceConnectorPageSource
-
deleteRows
public void deleteRows(Block rowIds)
- Specified by:
deleteRowsin interfaceUpdatablePageSource
-
updateRows
public void updateRows(Page page, List<Integer> columnValueAndRowIdChannels)
- Specified by:
updateRowsin interfaceUpdatablePageSource
-
finish
public CompletableFuture<Collection<io.airlift.slice.Slice>> finish()
- Specified by:
finishin interfaceUpdatablePageSource
-
abort
public void abort()
- Specified by:
abortin interfaceUpdatablePageSource
-
-