Package io.trino.server.testing.exchange
Class LocalFileSystemExchangeSource
- java.lang.Object
-
- io.trino.server.testing.exchange.LocalFileSystemExchangeSource
-
- All Implemented Interfaces:
ExchangeSource,Closeable,AutoCloseable
public class LocalFileSystemExchangeSource extends Object implements ExchangeSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.exchange.ExchangeSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description LocalFileSystemExchangeSource(List<Path> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetMemoryUsage()CompletableFuture<?>isBlocked()booleanisFinished()io.airlift.slice.Sliceread()
-
-
-
Method Detail
-
isBlocked
public CompletableFuture<?> isBlocked()
- Specified by:
isBlockedin interfaceExchangeSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceExchangeSource
-
read
@Nullable public io.airlift.slice.Slice read()
- Specified by:
readin interfaceExchangeSource
-
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsagein interfaceExchangeSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceExchangeSource
-
-