public class MinMaxAggregate extends java.lang.Object implements AggregationFunction
Constructor and Description |
---|
MinMaxAggregate(AggregationMode mode)
Mode should be Minimum, Maximum, MinMax, or Range
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isMax(QualifiedValue val,
QualifiedValue max) |
protected boolean |
isMin(QualifiedValue val,
QualifiedValue min) |
QualifiedValue[] |
process(QualifiedValue pv,
boolean interpolatedValue,
boolean blockFinished,
BlockContext blockContext,
QueryContext queryContext)
This function will be called for each value that should be processed, for the entire range of the query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataType, supportsDataType
public MinMaxAggregate(AggregationMode mode)
public QualifiedValue[] process(QualifiedValue pv, boolean interpolatedValue, boolean blockFinished, BlockContext blockContext, QueryContext queryContext)
AggregationFunction
process
in interface AggregationFunction
protected boolean isMin(QualifiedValue val, QualifiedValue min)
protected boolean isMax(QualifiedValue val, QualifiedValue max)