Class HistogramStateFactory
- java.lang.Object
-
- io.trino.operator.aggregation.histogram.HistogramStateFactory
-
- All Implemented Interfaces:
AccumulatorStateFactory<HistogramState>
public class HistogramStateFactory extends Object implements AccumulatorStateFactory<HistogramState>
-
-
Constructor Summary
Constructors Constructor Description HistogramStateFactory(Type keyType, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedEntriesCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistogramStatecreateGroupedState()HistogramStatecreateSingleState()
-
-
-
Constructor Detail
-
HistogramStateFactory
public HistogramStateFactory(Type keyType, BlockTypeOperators.BlockPositionEqual equalOperator, BlockTypeOperators.BlockPositionHashCode hashCodeOperator, int expectedEntriesCount)
-
-
Method Detail
-
createSingleState
public HistogramState createSingleState()
- Specified by:
createSingleStatein interfaceAccumulatorStateFactory<HistogramState>
-
createGroupedState
public HistogramState createGroupedState()
- Specified by:
createGroupedStatein interfaceAccumulatorStateFactory<HistogramState>
-
-