|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.search.aggregator.Count
public class Count
Counts the number of results
Constructor Summary | |
---|---|
Count()
|
Method Summary | |
---|---|
void |
accept(Object input)
Add the given value to the aggregator function |
Integer |
aggregateResult()
Retrieve the final result |
Count |
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 Count()
Method Detail |
---|
public Count createClone()
createClone
in interface AggregatorInstance<Integer>
public void accept(Object input) throws AggregatorException
accept
in interface AggregatorInstance<Integer>
input
- a single input value
AggregatorException
- if the function cannot be computed, possibly due to unsupported typespublic Integer aggregateResult()
aggregateResult
in interface AggregatorInstance<Integer>
public Attribute<?> getAttribute()
getAttribute
in interface AggregatorInstance<Integer>
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |