public class ExtremumOperator<T extends java.lang.Comparable<T>> extends AbstractMultisetAggregationOperator<T,com.google.common.collect.SortedMultiset<T>,T>
Modifier and Type | Class and Description |
---|---|
static class |
ExtremumOperator.Extreme |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.SortedMultiset<T> |
createNeutral() |
T |
getAggregate(com.google.common.collect.SortedMultiset<T> result) |
static <T extends java.lang.Comparable<T>> |
getMax() |
static <T extends java.lang.Comparable<T>> |
getMin() |
java.lang.String |
getName()
A name or identifier of the operator.
|
java.lang.String |
getShortDescription()
A textual description of the operator.
|
boolean |
isNeutral(com.google.common.collect.SortedMultiset<T> result) |
com.google.common.collect.SortedMultiset<T> |
update(com.google.common.collect.SortedMultiset<T> oldResult,
T updateValue,
boolean isInsertion) |
public static <T extends java.lang.Comparable<T>> ExtremumOperator<T> getMin()
public static <T extends java.lang.Comparable<T>> ExtremumOperator<T> getMax()
public java.lang.String getShortDescription()
IMultisetAggregationOperator
public java.lang.String getName()
IMultisetAggregationOperator
public com.google.common.collect.SortedMultiset<T> createNeutral()
public boolean isNeutral(com.google.common.collect.SortedMultiset<T> result)
public com.google.common.collect.SortedMultiset<T> update(com.google.common.collect.SortedMultiset<T> oldResult, T updateValue, boolean isInsertion)