public class Count extends Object implements AggregatorInstance<Integer>
Constructor and Description |
---|
Count() |
Modifier and Type | Method and Description |
---|---|
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
|
public Count createClone()
createClone
in interface AggregatorInstance<Integer>
public void accept(Object input) throws AggregatorException
accept
in interface AggregatorInstance<Integer>
input
- a single input valueAggregatorException
- 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>
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.