Class FileSystemExchange
java.lang.Object
io.trino.plugin.exchange.filesystem.FileSystemExchange
- All Implemented Interfaces:
Exchange,Closeable,AutoCloseable
-
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) updateSinkInstanceHandle(ExchangeSinkHandle sinkHandle, int taskAttemptId)
-
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()
-