Package io.trino.server.testing.exchange
Class LocalFileSystemExchangeSink
- java.lang.Object
-
- io.trino.server.testing.exchange.LocalFileSystemExchangeSink
-
- All Implemented Interfaces:
ExchangeSink
public class LocalFileSystemExchangeSink extends Object implements ExchangeSink
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMITTED_MARKER_FILE_NAMEstatic StringDATA_FILE_SUFFIX-
Fields inherited from interface io.trino.spi.exchange.ExchangeSink
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description LocalFileSystemExchangeSink(Path outputDirectory, int outputPartitionCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<?>abort()voidadd(int partitionId, io.airlift.slice.Slice data)CompletableFuture<?>finish()longgetMemoryUsage()CompletableFuture<?>isBlocked()
-
-
-
Field Detail
-
COMMITTED_MARKER_FILE_NAME
public static final String COMMITTED_MARKER_FILE_NAME
- See Also:
- Constant Field Values
-
DATA_FILE_SUFFIX
public static final String DATA_FILE_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalFileSystemExchangeSink
public LocalFileSystemExchangeSink(Path outputDirectory, int outputPartitionCount)
-
-
Method Detail
-
isBlocked
public CompletableFuture<?> 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
public CompletableFuture<?> finish()
- Specified by:
finishin interfaceExchangeSink
-
abort
public CompletableFuture<?> abort()
- Specified by:
abortin interfaceExchangeSink
-
-