Class FileSystemExchangeSink
java.lang.Object
io.trino.plugin.exchange.filesystem.FileSystemExchangeSink
- All Implemented Interfaces:
ExchangeSink
-
Field Summary
FieldsFields inherited from interface io.trino.spi.exchange.ExchangeSink
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemExchangeSink(FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, URI outputDirectory, int outputPartitionCount, boolean preserveOrderWithinPartition, int maxPageStorageSizeInBytes, int exchangeSinkBufferPoolMinSize, int exchangeSinkBuffersPerPartition, long maxFileSizeInBytes) -
Method Summary
-
Field Details
-
COMMITTED_MARKER_FILE_NAME
- See Also:
-
DATA_FILE_SUFFIX
- See Also:
-
-
Constructor Details
-
FileSystemExchangeSink
public FileSystemExchangeSink(FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, URI outputDirectory, int outputPartitionCount, boolean preserveOrderWithinPartition, int maxPageStorageSizeInBytes, int exchangeSinkBufferPoolMinSize, int exchangeSinkBuffersPerPartition, long maxFileSizeInBytes)
-
-
Method Details
-
isHandleUpdateRequired
public boolean isHandleUpdateRequired()- Specified by:
isHandleUpdateRequiredin interfaceExchangeSink
-
updateHandle
- Specified by:
updateHandlein interfaceExchangeSink
-
isBlocked
- Specified by:
isBlockedin interfaceExchangeSink
-
add
public void add(int partitionId, io.airlift.slice.Slice data) - Specified by:
addin interfaceExchangeSink
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceExchangeSink
-
finish
- Specified by:
finishin interfaceExchangeSink
-
abort
- Specified by:
abortin interfaceExchangeSink
-