Package io.trino.operator.exchange
Class ScaleWriterExchanger
java.lang.Object
io.trino.operator.exchange.ScaleWriterExchanger
- All Implemented Interfaces:
LocalExchanger
Scale up local writers based on throughput and data processed by writers.
Input pages are distributed across different writers in a round-robin fashion.
-
Field Summary
Fields inherited from interface io.trino.operator.exchange.LocalExchanger
FINISHED -
Constructor Summary
ConstructorsConstructorDescriptionScaleWriterExchanger(List<Consumer<Page>> buffers, LocalExchangeMemoryManager memoryManager, long maxBufferedBytes, AtomicLong dataProcessed, io.airlift.units.DataSize writerScalingMinDataProcessed, Supplier<Long> totalMemoryUsed, long maxMemoryPerNode) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.exchange.LocalExchanger
finish
-
Constructor Details
-
ScaleWriterExchanger
public ScaleWriterExchanger(List<Consumer<Page>> buffers, LocalExchangeMemoryManager memoryManager, long maxBufferedBytes, AtomicLong dataProcessed, io.airlift.units.DataSize writerScalingMinDataProcessed, Supplier<Long> totalMemoryUsed, long maxMemoryPerNode)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceLocalExchanger
-
waitForWriting
- Specified by:
waitForWritingin interfaceLocalExchanger
-