public class SpillableHashAggregationBuilder extends Object implements HashAggregationBuilder
| Constructor and 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) |
| Modifier and Type | Method and 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() |
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)
public Work<?> processPage(Page page)
processPage in interface HashAggregationBuilderpublic void updateMemory()
updateMemory in interface HashAggregationBuilderpublic void recordHashCollisions(HashCollisionsCounter hashCollisionsCounter)
recordHashCollisions in interface HashAggregationBuilderpublic boolean isFull()
isFull in interface HashAggregationBuilderpublic com.google.common.util.concurrent.ListenableFuture<?> startMemoryRevoke()
startMemoryRevoke in interface HashAggregationBuilderpublic void finishMemoryRevoke()
finishMemoryRevoke in interface HashAggregationBuilderpublic WorkProcessor<Page> buildResult()
buildResult in interface HashAggregationBuilderpublic void close()
close in interface HashAggregationBuilderclose in interface AutoCloseableCopyright © 2012–2019. All rights reserved.