Package com.illumon.iris.db.v2.by
Class KeyOnlyFirstOrLastByStateFactory
java.lang.Object
com.illumon.iris.db.v2.by.ReaggregatableStatefactory
com.illumon.iris.db.v2.by.IterativeIndexStateFactory
com.illumon.iris.db.v2.by.KeyOnlyFirstOrLastByStateFactory
- All Implemented Interfaces:
BasicDeflatable<KeyOnlyFirstOrLastByStateFactory>,AggregationStateFactory
public class KeyOnlyFirstOrLastByStateFactory extends IterativeIndexStateFactory implements BasicDeflatable<KeyOnlyFirstOrLastByStateFactory>
A Flavor of FirstBy that produces no values from the original table, only a named column of source keys.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description KeyOnlyFirstOrLastByStateFactory(String resultColumn, AggType type) -
Method Summary
Modifier and Type Method Description BasicInflatable<KeyOnlyFirstOrLastByStateFactory>deflate()AggregationMemoKeygetMemoKey()Produces a MemoKey for this aggregation state factory.StringgetResultColumn()booleanisLast()StringtoString()
-
Constructor Details
-
Method Details
-
getResultColumn
-
isLast
public boolean isLast() -
getMemoKey
Description copied from interface:AggregationStateFactoryProduces 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:
getMemoKeyin interfaceAggregationStateFactory- Returns:
- an AggregationMemoKey, null if this operation can not be memoized.
-
toString
-
deflate
- Specified by:
deflatein interfaceBasicDeflatable<KeyOnlyFirstOrLastByStateFactory>
-