Package com.illumon.iris.db.v2.by
Class PercentileByStateFactoryImpl
java.lang.Object
com.illumon.iris.db.v2.by.PercentileByStateFactoryImpl
- All Implemented Interfaces:
AggregationStateFactory
,Serializable
public class PercentileByStateFactoryImpl
extends Object
implements Serializable, AggregationStateFactory
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPercentileByStateFactoryImpl
(double percentile) PercentileByStateFactoryImpl
(double percentile, boolean averageMedian) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Produces a MemoKey for this aggregation state factory.double
-
Constructor Details
-
PercentileByStateFactoryImpl
public PercentileByStateFactoryImpl(double percentile) -
PercentileByStateFactoryImpl
public PercentileByStateFactoryImpl(double percentile, boolean averageMedian)
-
-
Method Details
-
getPercentile
public double getPercentile() -
getAverageMedian
public boolean getAverageMedian() -
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.
-