public class MVELAccumulatorFunctionExecutor extends Object implements MVELCompileable, Externalizable, org.drools.core.spi.MvelAccumulator
| Constructor and Description |
|---|
MVELAccumulatorFunctionExecutor() |
MVELAccumulatorFunctionExecutor(MVELCompilationUnit unit,
org.kie.api.runtime.rule.AccumulateFunction function) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.common.InternalFactHandle handle,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.WorkingMemory workingMemory) |
void |
compile(MVELDialectRuntimeData runtimeData) |
void |
compile(MVELDialectRuntimeData runtimeData,
org.drools.core.definitions.rule.impl.RuleImpl rule) |
Serializable |
createContext() |
Object |
createWorkingMemoryContext() |
org.drools.core.rule.Declaration[] |
getRequiredDeclarations() |
Object |
getResult(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
readExternal(ObjectInput in) |
void |
replaceDeclaration(org.drools.core.rule.Declaration declaration,
org.drools.core.rule.Declaration resolved) |
void |
reverse(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.common.InternalFactHandle handle,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.WorkingMemory workingMemory) |
boolean |
supportsReverse() |
void |
writeExternal(ObjectOutput out) |
public MVELAccumulatorFunctionExecutor()
public MVELAccumulatorFunctionExecutor(MVELCompilationUnit unit, org.kie.api.runtime.rule.AccumulateFunction function)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void compile(MVELDialectRuntimeData runtimeData)
compile in interface MVELCompileablepublic void compile(MVELDialectRuntimeData runtimeData, org.drools.core.definitions.rule.impl.RuleImpl rule)
compile in interface MVELCompileablepublic Serializable createContext()
createContext in interface org.drools.core.spi.Accumulatorpublic void init(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory) throws Exception
init in interface org.drools.core.spi.AccumulatorExceptionpublic void accumulate(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalFactHandle handle, org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.WorkingMemory workingMemory) throws Exception
accumulate in interface org.drools.core.spi.AccumulatorExceptionpublic void reverse(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.common.InternalFactHandle handle, org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.WorkingMemory workingMemory) throws Exception
reverse in interface org.drools.core.spi.AccumulatorExceptionpublic Object getResult(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory) throws Exception
getResult in interface org.drools.core.spi.AccumulatorExceptionpublic boolean supportsReverse()
supportsReverse in interface org.drools.core.spi.Accumulatorpublic Object createWorkingMemoryContext()
createWorkingMemoryContext in interface org.drools.core.spi.Accumulatorpublic org.drools.core.rule.Declaration[] getRequiredDeclarations()
getRequiredDeclarations in interface org.drools.core.spi.MvelAccumulatorpublic void replaceDeclaration(org.drools.core.rule.Declaration declaration,
org.drools.core.rule.Declaration resolved)
replaceDeclaration in interface org.drools.core.spi.MvelAccumulatorCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.