Package com.illumon.iris.db.v2.by
Class UniqueStateFactory
java.lang.Object
com.illumon.iris.db.v2.by.ReaggregatableStatefactory
com.illumon.iris.db.v2.by.IterativeOperatorStateFactory
com.illumon.iris.db.v2.by.UniqueStateFactory
- All Implemented Interfaces:
BasicDeflatable<UniqueStateFactory>
,AggregationStateFactory
,IterativeChunkedOperatorFactory
public class UniqueStateFactory extends IterativeOperatorStateFactory implements BasicDeflatable<UniqueStateFactory>
An Iterative state factory that displays the singluar unique value of the items within a particular state, or default values
if none are present, or the values are not unique.
-
Method Summary
Modifier and Type Method Description boolean
countNulls()
BasicInflatable<UniqueStateFactory>
deflate()
IterativeChunkedAggregationOperator
getChunkedOperator(Class type, String name, boolean exposeInternalColumns)
AggregationMemoKey
getMemoKey()
Produces a MemoKey for this aggregation state factory.Object
getNoKeyValue()
Object
getNonUniqueValue()
String
toString()
-
Method Details
-
getNoKeyValue
-
getNonUniqueValue
-
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<UniqueStateFactory>
-
toString
-