Class FileSystemExchangeSource
java.lang.Object
io.trino.plugin.exchange.filesystem.FileSystemExchangeSource
- All Implemented Interfaces:
ExchangeSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.spi.exchange.ExchangeSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionFileSystemExchangeSource(FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, int maxPageStorageSize, int exchangeSourceConcurrentReaders, int maxFilesPerReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSourceHandles(List<ExchangeSourceHandle> handles) voidclose()longbooleanvoidio.airlift.slice.Sliceread()voidsetOutputSelector(ExchangeSourceOutputSelector newSelector)
-
Constructor Details
-
FileSystemExchangeSource
public FileSystemExchangeSource(FileSystemExchangeStorage exchangeStorage, FileSystemExchangeStats stats, int maxPageStorageSize, int exchangeSourceConcurrentReaders, int maxFilesPerReader)
-
-
Method Details
-
addSourceHandles
- Specified by:
addSourceHandlesin interfaceExchangeSource
-
noMoreSourceHandles
public void noMoreSourceHandles()- Specified by:
noMoreSourceHandlesin interfaceExchangeSource
-
setOutputSelector
- Specified by:
setOutputSelectorin interfaceExchangeSource
-
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
-