Package io.trino.plugin.deltalake
Class DeltaLakeUpdatablePageSource
java.lang.Object
io.trino.plugin.deltalake.DeltaLakeUpdatablePageSource
- All Implemented Interfaces:
ConnectorPageSource,UpdatablePageSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionDeltaLakeUpdatablePageSource(DeltaLakeTableHandle tableHandle, List<DeltaLakeColumnHandle> queryColumns, Map<String, Optional<String>> partitionKeys, String path, long fileSize, long fileModifiedTime, ConnectorSession session, ExecutorService executorService, TrinoFileSystemFactory fileSystemFactory, HdfsEnvironment hdfsEnvironment, HdfsContext hdfsContext, org.joda.time.DateTimeZone parquetDateTimeZone, ParquetReaderOptions parquetReaderOptions, TupleDomain<HiveColumnHandle> parquetPredicate, TypeManager typeManager, io.airlift.json.JsonCodec<DeltaLakeUpdateResult> updateResultJsonCodec) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidclose()voiddeleteRows(Block rowIds) CompletableFuture<Collection<io.airlift.slice.Slice>>finish()longlonglongbooleanvoidupdateRows(Page page, List<Integer> columnValueAndRowIdChannels) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorPageSource
getCompletedPositions, isBlocked
-
Constructor Details
-
DeltaLakeUpdatablePageSource
public DeltaLakeUpdatablePageSource(DeltaLakeTableHandle tableHandle, List<DeltaLakeColumnHandle> queryColumns, Map<String, Optional<String>> partitionKeys, String path, long fileSize, long fileModifiedTime, ConnectorSession session, ExecutorService executorService, TrinoFileSystemFactory fileSystemFactory, HdfsEnvironment hdfsEnvironment, HdfsContext hdfsContext, org.joda.time.DateTimeZone parquetDateTimeZone, ParquetReaderOptions parquetReaderOptions, TupleDomain<HiveColumnHandle> parquetPredicate, TypeManager typeManager, io.airlift.json.JsonCodec<DeltaLakeUpdateResult> updateResultJsonCodec)
-
-
Method Details
-
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
-
getMetrics
- Specified by:
getMetricsin interfaceConnectorPageSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
getNextPage
- Specified by:
getNextPagein interfaceConnectorPageSource
-
deleteRows
- Specified by:
deleteRowsin interfaceUpdatablePageSource
-
updateRows
- Specified by:
updateRowsin interfaceUpdatablePageSource
-
finish
- Specified by:
finishin interfaceUpdatablePageSource
-
abort
public void abort()- Specified by:
abortin interfaceUpdatablePageSource
-