Package com.illumon.iris.db.v2.by
Class CountDistinctStateFactory
java.lang.Object
com.illumon.iris.db.v2.by.ReaggregatableStatefactory
com.illumon.iris.db.v2.by.IterativeOperatorStateFactory
com.illumon.iris.db.v2.by.CountDistinctStateFactory
- All Implemented Interfaces:
BasicDeflatable<CountDistinctStateFactory>
,AggregationStateFactory
,IterativeChunkedOperatorFactory
public class CountDistinctStateFactory extends IterativeOperatorStateFactory implements BasicDeflatable<CountDistinctStateFactory>
An Iterative state factory that computes the count of distinct items within a particular state.
-
Method Summary
Modifier and Type Method Description boolean
countNulls()
BasicInflatable<CountDistinctStateFactory>
deflate()
IterativeChunkedAggregationOperator
getChunkedOperator(Class type, String name, boolean exposeInternalColumns)
AggregationMemoKey
getMemoKey()
Produces a MemoKey for this aggregation state factory.String
toString()
-
Method Details
-
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.
-
getChunkedOperator
public IterativeChunkedAggregationOperator getChunkedOperator(Class type, String name, boolean exposeInternalColumns)- Specified by:
getChunkedOperator
in interfaceIterativeChunkedOperatorFactory
- Specified by:
getChunkedOperator
in classIterativeOperatorStateFactory
-
countNulls
public boolean countNulls() -
deflate
- Specified by:
deflate
in interfaceBasicDeflatable<CountDistinctStateFactory>
-
toString
-