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 |
|---|---|
Object |
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) |
Object |
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() |
Object |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
boolean |
supportsReverse() |
boolean |
tryReverse(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.common.InternalFactHandle handle,
Object value,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.WorkingMemory workingMemory) |
protected LambdaAccumulator(org.kie.api.runtime.rule.AccumulateFunction accumulateFunction)
public Object createWorkingMemoryContext()
createWorkingMemoryContext in interface org.drools.core.spi.Accumulatorpublic Object createContext()
createContext in interface org.drools.core.spi.Accumulatorpublic Object init(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory)
init in interface org.drools.core.spi.Accumulatorpublic Object 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)
accumulate in interface org.drools.core.spi.Accumulatorprotected 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 boolean tryReverse(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.common.InternalFactHandle handle, Object value, org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.WorkingMemory workingMemory)
tryReverse in interface org.drools.core.spi.AccumulatorCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.