public abstract class DroolsAbstractGroupByAccumulator<InTuple> extends Object implements org.drools.core.spi.Accumulator
Constructor and Description |
---|
DroolsAbstractGroupByAccumulator() |
Modifier and Type | Method and Description |
---|---|
Object |
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) |
Serializable |
createContext() |
protected abstract <X> InTuple |
createInput(Function<org.drools.model.Variable<X>,X> valueFinder) |
Object |
createWorkingMemoryContext() |
Object |
getResult(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
protected <X> X |
getValue(org.drools.model.Variable<X> var,
org.drools.core.common.InternalWorkingMemory internalWorkingMemory,
Object handleObject,
org.drools.core.rule.Declaration... declarations) |
Object |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
protected static <X,X2> X |
materialize(org.drools.model.Variable<X> var,
Function<org.drools.model.Variable<X2>,X2> valueFinder) |
protected abstract DroolsAbstractGroupBy<InTuple,?> |
newContext() |
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 static <X,X2> X materialize(org.drools.model.Variable<X> var, Function<org.drools.model.Variable<X2>,X2> valueFinder)
protected <X> X getValue(org.drools.model.Variable<X> var, org.drools.core.common.InternalWorkingMemory internalWorkingMemory, Object handleObject, org.drools.core.rule.Declaration... declarations)
public Serializable createContext()
createContext
in interface org.drools.core.spi.Accumulator
public Object init(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory)
init
in interface org.drools.core.spi.Accumulator
public Object 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)
accumulate
in interface org.drools.core.spi.Accumulator
public 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.Accumulator
public Object getResult(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory)
getResult
in interface org.drools.core.spi.Accumulator
public boolean supportsReverse()
supportsReverse
in interface org.drools.core.spi.Accumulator
public Object createWorkingMemoryContext()
createWorkingMemoryContext
in interface org.drools.core.spi.Accumulator
protected abstract DroolsAbstractGroupBy<InTuple,?> newContext()
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.