public class MultiAccumulate extends Accumulate
| Modifier and Type | Class and Description |
|---|---|
class |
MultiAccumulate.Wirer |
cloned, innerDeclarationCache, requiredDeclarations, source| Constructor and Description |
|---|
MultiAccumulate() |
MultiAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator[] accumulators,
int arraySize) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accumulate(Object workingMemoryContext,
Object context,
Tuple match,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle
|
Object |
accumulate(Object workingMemoryContext,
Tuple match,
InternalFactHandle childHandle,
AccumulateNode.GroupByContext groupByContext,
TupleList<AccumulateNode.AccumulateContextEntry> tupleList,
WorkingMemory wm) |
MultiAccumulate |
clone()
Returns a clone from itself
|
Object[] |
createFunctionContext() |
Object[] |
createWorkingMemoryContext() |
boolean |
equals(Object obj) |
Accumulator[] |
getAccumulators() |
Object[] |
getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Gets the result of the accumulation
|
int |
hashCode() |
Object |
init(Object workingMemoryContext,
Object accContext,
Object funcContext,
Tuple leftTuple,
WorkingMemory workingMemory)
Executes the initialization block of code
|
boolean |
isMultiFunction() |
void |
readExternal(ObjectInput in) |
void |
replaceAccumulatorDeclaration(Declaration declaration,
Declaration resolved) |
boolean |
supportsReverse()
Returns true if this accumulate supports reverse
|
boolean |
tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
RightTuple rightParent,
LeftTuple match,
WorkingMemory workingMemory)
Executes the reverse (action) code for the given fact handle
|
void |
writeExternal(ObjectOutput out) |
getInnerDeclarationCache, getInnerDeclarations, getNestedElements, getOuterDeclarations, getRequiredDeclarations, getSource, hasRequiredDeclarations, isGroupBy, isPatternScopeDelimiter, registerClone, replaceDeclaration, requiresLeftActivation, resolveDeclarationpublic MultiAccumulate()
public MultiAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations, Accumulator[] accumulators, int arraySize)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AccumulateIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AccumulateIOExceptionpublic boolean isMultiFunction()
isMultiFunction in class Accumulatepublic Accumulator[] getAccumulators()
getAccumulators in class Accumulatepublic Object[] createFunctionContext()
createFunctionContext in class Accumulatepublic Object init(Object workingMemoryContext, Object accContext, Object funcContext, Tuple leftTuple, WorkingMemory workingMemory)
Accumulateinit in class Accumulatepublic Object accumulate(Object workingMemoryContext, Object context, Tuple match, InternalFactHandle handle, WorkingMemory workingMemory)
Accumulateaccumulate in class Accumulatepublic Object accumulate(Object workingMemoryContext, Tuple match, InternalFactHandle childHandle, AccumulateNode.GroupByContext groupByContext, TupleList<AccumulateNode.AccumulateContextEntry> tupleList, WorkingMemory wm)
accumulate in class Accumulatepublic boolean tryReverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, RightTuple rightParent, LeftTuple match, WorkingMemory workingMemory)
AccumulatetryReverse in class Accumulatepublic boolean supportsReverse()
AccumulatesupportsReverse in class Accumulatepublic Object[] getResult(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)
AccumulategetResult in class Accumulatepublic void replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved)
replaceAccumulatorDeclaration in class Accumulatepublic MultiAccumulate clone()
RuleConditionElementclone in interface RuleConditionElementclone in class Accumulatepublic Object[] createWorkingMemoryContext()
createWorkingMemoryContext in class AccumulateCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.