Class FileSystemExchange
java.lang.Object
io.trino.plugin.exchange.filesystem.FileSystemExchange
- All Implemented Interfaces:
Exchange,Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.exchange.Exchange
Exchange.SourceHandlesDeliveryMode -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemExchange(List<URI> baseDirectories, FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, ExchangeContext exchangeContext, int outputPartitionCount, boolean preserveOrderWithinPartition, int fileListingParallelism, long exchangeSourceHandleTargetDataSizeInBytes, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionaddSink(int taskPartition) voidvoidclose()getId()instantiateSink(ExchangeSinkHandle sinkHandle, int taskAttemptId) voidvoidsinkFinished(ExchangeSinkHandle handle, int taskAttemptId) toString()updateSinkInstanceHandle(ExchangeSinkHandle sinkHandle, int taskAttemptId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.exchange.Exchange
setSourceHandlesDeliveryMode
-
Constructor Details
-
FileSystemExchange
public FileSystemExchange(List<URI> baseDirectories, FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, ExchangeContext exchangeContext, int outputPartitionCount, boolean preserveOrderWithinPartition, int fileListingParallelism, long exchangeSourceHandleTargetDataSizeInBytes, ExecutorService executor)
-
-
Method Details
-
getId
-
addSink
-
noMoreSinks
public void noMoreSinks()- Specified by:
noMoreSinksin interfaceExchange
-
instantiateSink
public CompletableFuture<ExchangeSinkInstanceHandle> instantiateSink(ExchangeSinkHandle sinkHandle, int taskAttemptId) - Specified by:
instantiateSinkin interfaceExchange
-
updateSinkInstanceHandle
public CompletableFuture<ExchangeSinkInstanceHandle> updateSinkInstanceHandle(ExchangeSinkHandle sinkHandle, int taskAttemptId) - Specified by:
updateSinkInstanceHandlein interfaceExchange
-
sinkFinished
- Specified by:
sinkFinishedin interfaceExchange
-
allRequiredSinksFinished
public void allRequiredSinksFinished()- Specified by:
allRequiredSinksFinishedin interfaceExchange
-
getSourceHandles
- Specified by:
getSourceHandlesin interfaceExchange
-
close
public void close() -
toString
-