Class SpillableHashAggregationBuilder
- java.lang.Object
-
- io.trino.operator.aggregation.builder.SpillableHashAggregationBuilder
-
- All Implemented Interfaces:
HashAggregationBuilder,AutoCloseable
public class SpillableHashAggregationBuilder extends Object implements HashAggregationBuilder
-
-
Constructor Summary
Constructors Constructor Description SpillableHashAggregationBuilder(List<AccumulatorFactory> accumulatorFactories, AggregationNode.Step step, int expectedGroups, List<Type> groupByTypes, List<Integer> groupByChannels, Optional<Integer> hashChannel, OperatorContext operatorContext, io.airlift.units.DataSize memoryLimitForMerge, io.airlift.units.DataSize memoryLimitForMergeWithMemory, SpillerFactory spillerFactory, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkProcessor<Page>buildResult()voidclose()voidfinishMemoryRevoke()booleanisFull()Work<?>processPage(Page page)voidrecordHashCollisions(HashCollisionsCounter hashCollisionsCounter)com.google.common.util.concurrent.ListenableFuture<?>startMemoryRevoke()voidupdateMemory()
-
-
-
Constructor Detail
-
SpillableHashAggregationBuilder
public SpillableHashAggregationBuilder(List<AccumulatorFactory> accumulatorFactories, AggregationNode.Step step, int expectedGroups, List<Type> groupByTypes, List<Integer> groupByChannels, Optional<Integer> hashChannel, OperatorContext operatorContext, io.airlift.units.DataSize memoryLimitForMerge, io.airlift.units.DataSize memoryLimitForMergeWithMemory, SpillerFactory spillerFactory, JoinCompiler joinCompiler, BlockTypeOperators blockTypeOperators)
-
-
Method Detail
-
processPage
public Work<?> processPage(Page page)
- Specified by:
processPagein interfaceHashAggregationBuilder
-
updateMemory
public void updateMemory()
- Specified by:
updateMemoryin interfaceHashAggregationBuilder
-
recordHashCollisions
public void recordHashCollisions(HashCollisionsCounter hashCollisionsCounter)
- Specified by:
recordHashCollisionsin interfaceHashAggregationBuilder
-
isFull
public boolean isFull()
- Specified by:
isFullin interfaceHashAggregationBuilder
-
startMemoryRevoke
public com.google.common.util.concurrent.ListenableFuture<?> startMemoryRevoke()
- Specified by:
startMemoryRevokein interfaceHashAggregationBuilder
-
finishMemoryRevoke
public void finishMemoryRevoke()
- Specified by:
finishMemoryRevokein interfaceHashAggregationBuilder
-
buildResult
public WorkProcessor<Page> buildResult()
- Specified by:
buildResultin interfaceHashAggregationBuilder
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceHashAggregationBuilder
-
-