Package com.illumon.iris.db.v2.by
Class WeightedSumStateFactoryImpl
java.lang.Object
com.illumon.iris.db.v2.by.ReaggregatableStatefactory
com.illumon.iris.db.v2.by.IterativeOperatorStateFactory
com.illumon.iris.db.v2.by.WeightedSumStateFactoryImpl
- All Implemented Interfaces:
BasicDeflatable<WeightedSumStateFactoryImpl>
,AggregationStateFactory
,IterativeChunkedOperatorFactory
public class WeightedSumStateFactoryImpl extends IterativeOperatorStateFactory implements BasicDeflatable<WeightedSumStateFactoryImpl>
-
Constructor Summary
Constructors Constructor Description WeightedSumStateFactoryImpl(String weightName)
-
Method Summary
Modifier and Type Method Description BasicInflatable<WeightedSumStateFactoryImpl>
deflate()
IterativeChunkedAggregationOperator
getChunkedOperator(Class type, String name, boolean exposeInternalColumns)
AggregationMemoKey
getMemoKey()
Produces a MemoKey for this aggregation state factory.String
getWeightName()
String
toString()
-
Constructor Details
-
Method Details
-
getWeightName
-
getChunkedOperator
public IterativeChunkedAggregationOperator getChunkedOperator(Class type, String name, boolean exposeInternalColumns)- Specified by:
getChunkedOperator
in interfaceIterativeChunkedOperatorFactory
- Specified by:
getChunkedOperator
in classIterativeOperatorStateFactory
-
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<WeightedSumStateFactoryImpl>
-
toString
-