Package com.illumon.iris.db.v2.by
Class WeightedAverageStateFactoryImpl
java.lang.Object
com.illumon.iris.db.v2.by.WeightedAverageStateFactoryImpl
- All Implemented Interfaces:
BasicDeflatable<WeightedAverageStateFactoryImpl>
,AggregationStateFactory
public class WeightedAverageStateFactoryImpl extends Object implements BasicDeflatable<WeightedAverageStateFactoryImpl>, AggregationStateFactory
-
Constructor Summary
Constructors Constructor Description WeightedAverageStateFactoryImpl(String weightName)
-
Method Summary
Modifier and Type Method Description BasicInflatable<WeightedAverageStateFactoryImpl>
deflate()
AggregationMemoKey
getMemoKey()
Produces a MemoKey for this aggregation state factory.String
getWeightName()
String
toString()
-
Constructor Details
-
Method Details
-
getWeightName
-
getMemoKey
Description copied from interface:AggregationStateFactory
Produces a MemoKey for this aggregation state factory.If two AggregationStateFactories have equal memoKeys, then
Table.by(com.illumon.iris.db.v2.by.AggregationStateFactory, com.illumon.iris.db.v2.select.SelectColumn...)
operations that have the same group by columns may be memoized. In that case instead of recomputing the result; the original result will be used.If null is returned, the operation will not be memoized.
- Specified by:
getMemoKey
in interfaceAggregationStateFactory
- Returns:
- an AggregationMemoKey, null if this operation can not be memoized.
-
deflate
- Specified by:
deflate
in interfaceBasicDeflatable<WeightedAverageStateFactoryImpl>
-
toString
-