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.Accumulatorpublic 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.Accumulatorpublic 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.Accumulatorpublic 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.Accumulatorpublic 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.Accumulatorpublic boolean supportsReverse()
supportsReverse in interface org.drools.core.spi.Accumulatorpublic Object createWorkingMemoryContext()
createWorkingMemoryContext in interface org.drools.core.spi.Accumulatorpublic String getMethodBytecode()
getMethodBytecode in interface org.drools.core.spi.CompiledInvokerCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.