Package io.trino.operator
Interface DirectExchangeBuffer
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DeduplicatingDirectExchangeBuffer,StreamingDirectExchangeBuffer
public interface DirectExchangeBuffer extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPages(TaskId taskId, List<io.airlift.slice.Slice> pages)voidaddTask(TaskId taskId)voidclose()intgetBufferedPageCount()longgetMaxRetainedSizeInBytes()longgetRemainingCapacityInBytes()longgetRetainedSizeInBytes()longgetSpilledBytes()intgetSpilledPageCount()com.google.common.util.concurrent.ListenableFuture<Void>isBlocked()This method may be called by multiple independent client concurrently.booleanisFailed()booleanisFinished()voidnoMoreTasks()io.airlift.slice.SlicepollPage()voidtaskFailed(TaskId taskId, Throwable t)voidtaskFinished(TaskId taskId)
-
-
-
Method Detail
-
isBlocked
com.google.common.util.concurrent.ListenableFuture<Void> isBlocked()
This method may be called by multiple independent client concurrently. Implementations must ensure the cancellation of a future by one of the clients doesn't cancel futures obtained by other clients.
-
pollPage
io.airlift.slice.Slice pollPage()
-
addTask
void addTask(TaskId taskId)
-
taskFinished
void taskFinished(TaskId taskId)
-
noMoreTasks
void noMoreTasks()
-
isFinished
boolean isFinished()
-
isFailed
boolean isFailed()
-
getRemainingCapacityInBytes
long getRemainingCapacityInBytes()
-
getRetainedSizeInBytes
long getRetainedSizeInBytes()
-
getMaxRetainedSizeInBytes
long getMaxRetainedSizeInBytes()
-
getBufferedPageCount
int getBufferedPageCount()
-
getSpilledBytes
long getSpilledBytes()
-
getSpilledPageCount
int getSpilledPageCount()
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-