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()Class<? extends HistogramState>getGroupedStateClass()Class<? extends HistogramState>getSingleStateClass()
-
-
-
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>
-
getSingleStateClass
public Class<? extends HistogramState> getSingleStateClass()
- Specified by:
getSingleStateClassin interfaceAccumulatorStateFactory<HistogramState>
-
createGroupedState
public HistogramState createGroupedState()
- Specified by:
createGroupedStatein interfaceAccumulatorStateFactory<HistogramState>
-
getGroupedStateClass
public Class<? extends HistogramState> getGroupedStateClass()
- Specified by:
getGroupedStateClassin interfaceAccumulatorStateFactory<HistogramState>
-
-