public interface AccumulateFunction<C extends Serializable> extends Externalizable
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(C context,
Object value)
Executes the accumulation action
|
C |
createContext()
Creates and returns a new context object
|
Object |
getResult(C context) |
Class<?> |
getResultType() |
void |
init(C context)
Initializes the accumulator
|
void |
reverse(C context,
Object value)
Reverses the accumulation action
|
boolean |
supportsReverse() |
readExternal, writeExternalC createContext()
void init(C context) throws Exception
context - never nullExceptionvoid accumulate(C context, Object value)
context - never nullvalue - void reverse(C context, Object value) throws Exception
context - never nullvalue - ExceptionObject getResult(C context) throws Exception
Exceptionboolean supportsReverse()
Class<?> getResultType()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.