Class SpillableHashAggregationBuilder
- java.lang.Object
-
- io.prestosql.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()
void
close()
void
finishMemoryRevoke()
boolean
isFull()
Work<?>
processPage(Page page)
void
recordHashCollisions(HashCollisionsCounter hashCollisionsCounter)
com.google.common.util.concurrent.ListenableFuture<?>
startMemoryRevoke()
void
updateMemory()
-
-
-
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:
processPage
in interfaceHashAggregationBuilder
-
updateMemory
public void updateMemory()
- Specified by:
updateMemory
in interfaceHashAggregationBuilder
-
recordHashCollisions
public void recordHashCollisions(HashCollisionsCounter hashCollisionsCounter)
- Specified by:
recordHashCollisions
in interfaceHashAggregationBuilder
-
isFull
public boolean isFull()
- Specified by:
isFull
in interfaceHashAggregationBuilder
-
startMemoryRevoke
public com.google.common.util.concurrent.ListenableFuture<?> startMemoryRevoke()
- Specified by:
startMemoryRevoke
in interfaceHashAggregationBuilder
-
finishMemoryRevoke
public void finishMemoryRevoke()
- Specified by:
finishMemoryRevoke
in interfaceHashAggregationBuilder
-
buildResult
public WorkProcessor<Page> buildResult()
- Specified by:
buildResult
in interfaceHashAggregationBuilder
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceHashAggregationBuilder
-
-