Class MinMaxByStateFactoryImpl

java.lang.Object
com.illumon.iris.db.v2.by.ReaggregatableStatefactory
com.illumon.iris.db.v2.by.MinMaxByStateFactoryImpl
All Implemented Interfaces:
BasicDeflatable<MinMaxByStateFactoryImpl>, AggregationStateFactory
Direct Known Subclasses:
AppendMinMaxByStateFactoryImpl

public class MinMaxByStateFactoryImpl
extends ReaggregatableStatefactory
implements BasicDeflatable<MinMaxByStateFactoryImpl>
Minimum and Maximum aggregation factory. Operates in two modes, for non-refreshing tables it requires very little state (just the current minimum or maximum). For refreshing tables, it requires maintaining a TreeMap of values to counts; so that if the min/max value is removed we are able to identify the next lowest/highest value. You can use AppendMinMaxByStateFactoryImpl if you want to force append-only behavior.