T
- public class Max<T> extends Object implements AggregatorInstance<T>
Modifier and Type | Method and Description |
---|---|
void |
accept(Object input)
Add the given value to the aggregator function
|
T |
aggregateResult()
Retrieve the final result
|
Max<T> |
createClone()
Create a clone of this aggregator, detaching from its result
|
Attribute |
getAttribute()
Get the attribute to pass to aggregator
|
public Max(Attribute<?> attribute)
attribute
- public Max<T> createClone()
createClone
in interface AggregatorInstance<T>
public T aggregateResult()
aggregateResult
in interface AggregatorInstance<T>
public void accept(Object input) throws AggregatorException
accept
in interface AggregatorInstance<T>
input
- a single input valueAggregatorException
- if the function cannot be computed, possibly due to unsupported typespublic Attribute getAttribute()
getAttribute
in interface AggregatorInstance<T>
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.