|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.search.aggregator.Sum
public class Sum
Sums the results
Sum can be used with most numeric types
| Constructor Summary | |
|---|---|
Sum(Attribute<?> attribute)
|
|
| Method Summary | |
|---|---|
void |
accept(Object input)
Add the given value to the aggregator function |
Number |
aggregateResult()
Retrieve the final result |
Sum |
createClone()
Create a clone of this aggregator, detaching from its result |
Attribute |
getAttribute()
Get the attribute to pass to aggregator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sum(Attribute<?> attribute)
attribute - | Method Detail |
|---|
public Sum createClone()
createClone in interface AggregatorInstance<Long>
public void accept(Object input)
throws AggregatorException
accept in interface AggregatorInstance<Long>input - a single input value
AggregatorException - if the function cannot be computed, possibly due to unsupported typespublic Number aggregateResult()
aggregateResult in interface AggregatorInstance<Long>public Attribute getAttribute()
getAttribute in interface AggregatorInstance<Long>
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||