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 and Type | Field and Description |
---|---|
protected List<String> |
sourceVariables |
Modifier | Constructor and Description |
---|---|
protected |
LambdaAccumulator(org.kie.api.runtime.rule.AccumulateFunction accumulateFunction,
List<String> sourceVariables) |
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() |
public Object createWorkingMemoryContext()
createWorkingMemoryContext
in interface org.drools.core.spi.Accumulator
public Serializable createContext()
createContext
in interface org.drools.core.spi.Accumulator
public 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.Accumulator
Exception
public 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.Accumulator
Exception
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)
public boolean supportsReverse()
supportsReverse
in interface org.drools.core.spi.Accumulator
public 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.Accumulator
Exception
public 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.Accumulator
Exception
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.