Class JavaAccumulatorFunctionExecutor
java.lang.Object
org.drools.core.base.accumulators.JavaAccumulatorFunctionExecutor
- All Implemented Interfaces:
Externalizable,Serializable,Accumulator,Invoker,Wireable,RuleComponent
public class JavaAccumulatorFunctionExecutor
extends Object
implements Accumulator, Externalizable, Wireable
A Java accumulator function executor implementation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.base.rule.accessor.Wireable
Wireable.Immutable -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaccumulate(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) booleangetResult(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) inthashCode()init(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) voidvoidsetExpression(ReturnValueExpression expression) booleanbooleantryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) voidvoidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.base.rule.accessor.Accumulator
getRequiredDeclarations, replaceDeclarationMethods inherited from interface org.drools.base.rule.accessor.Invoker
wrapsCompiledInvoker
-
Constructor Details
-
JavaAccumulatorFunctionExecutor
public JavaAccumulatorFunctionExecutor() -
JavaAccumulatorFunctionExecutor
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
createContext
- Specified by:
createContextin interfaceAccumulator
-
init
public Object init(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) - Specified by:
initin interfaceAccumulator
-
accumulate
public Object accumulate(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) - Specified by:
accumulatein interfaceAccumulator
-
tryReverse
public boolean tryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) - Specified by:
tryReversein interfaceAccumulator
-
getResult
public Object getResult(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) - Specified by:
getResultin interfaceAccumulator
-
supportsReverse
public boolean supportsReverse()- Specified by:
supportsReversein interfaceAccumulator
-
getExpression
-
wire
-
setExpression
-
createWorkingMemoryContext
- Specified by:
createWorkingMemoryContextin interfaceAccumulator
-
equals
-
hashCode
public int hashCode()
-