public static class HashAggregationOperator.HashAggregationOperatorFactory extends Object implements OperatorFactory
| Constructor and Description |
|---|
HashAggregationOperatorFactory(int operatorId,
PlanNodeId planNodeId,
List<? extends Type> groupByTypes,
List<Integer> groupByChannels,
List<Integer> globalAggregationGroupIds,
AggregationNode.Step step,
boolean produceDefaultOutput,
List<AccumulatorFactory> accumulatorFactories,
Optional<Integer> hashChannel,
Optional<Integer> groupIdChannel,
int expectedGroups,
Optional<io.airlift.units.DataSize> maxPartialMemory,
boolean spillEnabled,
io.airlift.units.DataSize unspillMemoryLimit,
SpillerFactory spillerFactory,
JoinCompiler joinCompiler,
boolean useSystemMemory) |
HashAggregationOperatorFactory(int operatorId,
PlanNodeId planNodeId,
List<? extends Type> groupByTypes,
List<Integer> groupByChannels,
List<Integer> globalAggregationGroupIds,
AggregationNode.Step step,
List<AccumulatorFactory> accumulatorFactories,
Optional<Integer> hashChannel,
Optional<Integer> groupIdChannel,
int expectedGroups,
Optional<io.airlift.units.DataSize> maxPartialMemory,
JoinCompiler joinCompiler,
boolean useSystemMemory) |
| Modifier and Type | Method and Description |
|---|---|
Operator |
createOperator(DriverContext driverContext) |
OperatorFactory |
duplicate() |
void |
noMoreOperators()
Declare that createOperator will not be called any more and release
any resources associated with this factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnoMoreOperatorspublic HashAggregationOperatorFactory(int operatorId,
PlanNodeId planNodeId,
List<? extends Type> groupByTypes,
List<Integer> groupByChannels,
List<Integer> globalAggregationGroupIds,
AggregationNode.Step step,
List<AccumulatorFactory> accumulatorFactories,
Optional<Integer> hashChannel,
Optional<Integer> groupIdChannel,
int expectedGroups,
Optional<io.airlift.units.DataSize> maxPartialMemory,
JoinCompiler joinCompiler,
boolean useSystemMemory)
public HashAggregationOperatorFactory(int operatorId,
PlanNodeId planNodeId,
List<? extends Type> groupByTypes,
List<Integer> groupByChannels,
List<Integer> globalAggregationGroupIds,
AggregationNode.Step step,
boolean produceDefaultOutput,
List<AccumulatorFactory> accumulatorFactories,
Optional<Integer> hashChannel,
Optional<Integer> groupIdChannel,
int expectedGroups,
Optional<io.airlift.units.DataSize> maxPartialMemory,
boolean spillEnabled,
io.airlift.units.DataSize unspillMemoryLimit,
SpillerFactory spillerFactory,
JoinCompiler joinCompiler,
boolean useSystemMemory)
public Operator createOperator(DriverContext driverContext)
createOperator in interface OperatorFactorypublic void noMoreOperators()
OperatorFactoryThis method will be called only once. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this will only be invoked after OperatorFactory.noMoreOperators(Lifespan)
has been invoked for all applicable driver groups.
noMoreOperators in interface OperatorFactorypublic OperatorFactory duplicate()
duplicate in interface OperatorFactoryCopyright © 2012–2019. All rights reserved.