public abstract class LambdaAccumulator extends Object implements org.drools.core.spi.Accumulator
| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaAccumulator.BindingAcc |
static class |
LambdaAccumulator.FixedValueAcc |
static class |
LambdaAccumulator.NotBindingAcc |
| Modifier | Constructor and Description |
|---|---|
protected |
LambdaAccumulator(org.kie.api.runtime.rule.AccumulateFunction accumulateFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(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) |
Serializable |
createContext() |
Object |
createWorkingMemoryContext() |
boolean |
equals(Object o) |
protected abstract Object |
getAccumulatedObject(org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.common.InternalFactHandle handle,
org.drools.core.spi.Tuple tuple,
org.drools.core.common.InternalWorkingMemory wm) |
Object |
getResult(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
int |
hashCode() |
void |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
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() |
protected LambdaAccumulator(org.kie.api.runtime.rule.AccumulateFunction accumulateFunction)
public Object createWorkingMemoryContext()
createWorkingMemoryContext in interface org.drools.core.spi.Accumulatorpublic 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 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
accumulate in interface org.drools.core.spi.AccumulatorExceptionprotected abstract Object getAccumulatedObject(org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.common.InternalFactHandle handle, org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalWorkingMemory wm)
public boolean supportsReverse()
supportsReverse in interface org.drools.core.spi.Accumulatorpublic 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.AccumulatorExceptionCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.