public interface AccumulateFunction extends Externalizable
| Modifier and Type | Method and Description | 
|---|---|
void | 
accumulate(Serializable context,
          Object value)
Executes the accumulation action 
 | 
Serializable | 
createContext()
Creates and returns a new context object 
 | 
Object | 
getResult(Serializable context)
Returns the current value in this accumulation session 
 | 
Class<?> | 
getResultType()
Returns the class type of the result of this function 
 | 
void | 
init(Serializable context)
Initializes the accumulator 
 | 
void | 
reverse(Serializable context,
       Object value)
Reverses the accumulation action 
 | 
boolean | 
supportsReverse()
True if the function supports reverse. 
 | 
readExternal, writeExternalSerializable createContext()
void init(Serializable context) throws Exception
context - Exceptionvoid accumulate(Serializable context, Object value)
context - value - void reverse(Serializable context, Object value) throws Exception
context - value - ExceptionObject getResult(Serializable context) throws Exception
context - Exceptionboolean supportsReverse()
Class<?> getResultType()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.