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 HashAggregationBuilder
public void updateMemory()
updateMemory
in interface HashAggregationBuilder
public void recordHashCollisions(HashCollisionsCounter hashCollisionsCounter)
recordHashCollisions
in interface HashAggregationBuilder
public boolean isFull()
isFull
in interface HashAggregationBuilder
public com.google.common.util.concurrent.ListenableFuture<?> startMemoryRevoke()
startMemoryRevoke
in interface HashAggregationBuilder
public void finishMemoryRevoke()
finishMemoryRevoke
in interface HashAggregationBuilder
public WorkProcessor<Page> buildResult()
buildResult
in interface HashAggregationBuilder
public void close()
close
in interface HashAggregationBuilder
close
in interface AutoCloseable
Copyright © 2012–2019. All rights reserved.