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, writeExternal
Serializable createContext()
void init(Serializable context) throws Exception
context
- Exception
void accumulate(Serializable context, Object value)
context
- value
- void reverse(Serializable context, Object value) throws Exception
context
- value
- Exception
Object getResult(Serializable context) throws Exception
context
- Exception
boolean supportsReverse()
Class<?> getResultType()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.