public class DroolsGroupByInvoker<A,B,ResultContainer,NewB> extends Object implements org.drools.core.spi.Accumulator, org.drools.core.spi.CompiledInvoker
Constructor and Description |
---|
DroolsGroupByInvoker(UniConstraintCollector<B,ResultContainer,NewB> collector,
org.drools.model.Variable<A> groupKeyVar,
org.drools.model.Variable<B> collectingVar) |
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) |
Serializable |
createContext() |
Object |
createWorkingMemoryContext() |
String |
getMethodBytecode() |
Object |
getResult(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
reverse(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) |
boolean |
supportsReverse() |
public DroolsGroupByInvoker(UniConstraintCollector<B,ResultContainer,NewB> collector, org.drools.model.Variable<A> groupKeyVar, org.drools.model.Variable<B> collectingVar)
public Serializable createContext()
createContext
in interface org.drools.core.spi.Accumulator
public void 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 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)
accumulate
in interface org.drools.core.spi.Accumulator
public void reverse(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)
reverse
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
public String getMethodBytecode()
getMethodBytecode
in interface org.drools.core.spi.CompiledInvoker
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.