Package io.trino.operator
Interface DirectExchangeBuffer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DeduplicatingDirectExchangeBuffer,StreamingDirectExchangeBuffer
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()intlonglonglonglongintcom.google.common.util.concurrent.ListenableFuture<Void> This method may be called by multiple independent client concurrently.booleanisFailed()booleanvoidio.airlift.slice.SlicepollPage()voidtaskFailed(TaskId taskId, Throwable t) voidtaskFinished(TaskId taskId)
-
Method Details
-
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
-
addPages
-
taskFinished
-
taskFailed
-
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
-