|
KIE API 6.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccumulateFunction
An interface for accumulate external function implementations
Method Summary | |
---|---|
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. |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Method Detail |
---|
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()
|
KIE API 6.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |