Package io.trino.operator
Class StreamingDirectExchangeBuffer
java.lang.Object
io.trino.operator.StreamingDirectExchangeBuffer
- All Implemented Interfaces:
DirectExchangeBuffer,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingDirectExchangeBuffer(Executor executor, io.airlift.units.DataSize bufferCapacity) -
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)
-
Constructor Details
-
StreamingDirectExchangeBuffer
-
-
Method Details
-
isBlocked
Description copied from interface:DirectExchangeBufferThis 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.- Specified by:
isBlockedin interfaceDirectExchangeBuffer
-
pollPage
public io.airlift.slice.Slice pollPage()- Specified by:
pollPagein interfaceDirectExchangeBuffer
-
addTask
- Specified by:
addTaskin interfaceDirectExchangeBuffer
-
addPages
- Specified by:
addPagesin interfaceDirectExchangeBuffer
-
taskFinished
- Specified by:
taskFinishedin interfaceDirectExchangeBuffer
-
taskFailed
- Specified by:
taskFailedin interfaceDirectExchangeBuffer
-
noMoreTasks
public void noMoreTasks()- Specified by:
noMoreTasksin interfaceDirectExchangeBuffer
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceDirectExchangeBuffer
-
isFailed
public boolean isFailed()- Specified by:
isFailedin interfaceDirectExchangeBuffer
-
getRemainingCapacityInBytes
public long getRemainingCapacityInBytes()- Specified by:
getRemainingCapacityInBytesin interfaceDirectExchangeBuffer
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceDirectExchangeBuffer
-
getMaxRetainedSizeInBytes
public long getMaxRetainedSizeInBytes()- Specified by:
getMaxRetainedSizeInBytesin interfaceDirectExchangeBuffer
-
getBufferedPageCount
public int getBufferedPageCount()- Specified by:
getBufferedPageCountin interfaceDirectExchangeBuffer
-
getSpilledBytes
public long getSpilledBytes()- Specified by:
getSpilledBytesin interfaceDirectExchangeBuffer
-
getSpilledPageCount
public int getSpilledPageCount()- Specified by:
getSpilledPageCountin interfaceDirectExchangeBuffer
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDirectExchangeBuffer
-