Drools :: ReteOO 6.0.0.CR2

org.drools.reteoo.nodes
Class ReteQueryElementNode

java.lang.Object
  extended by org.drools.core.common.BaseNode
      extended by org.drools.core.reteoo.LeftTupleSource
          extended by org.drools.core.reteoo.QueryElementNode
              extended by org.drools.reteoo.nodes.ReteQueryElementNode
All Implemented Interfaces:
Externalizable, Serializable, org.drools.core.common.MemoryFactory, org.drools.core.common.NetworkNode, org.drools.core.reteoo.LeftTupleSink, org.drools.core.reteoo.LeftTupleSinkNode, org.drools.core.reteoo.Sink

public class ReteQueryElementNode
extends org.drools.core.reteoo.QueryElementNode

See Also:
Serialized Form

Nested Class Summary
static class ReteQueryElementNode.QueryInsertAction
           
static class ReteQueryElementNode.QueryResultInsertAction
           
static class ReteQueryElementNode.QueryResultRetractAction
           
static class ReteQueryElementNode.QueryResultUpdateAction
           
static class ReteQueryElementNode.QueryRetractAction
           
static class ReteQueryElementNode.QueryUpdateAction
           
static class ReteQueryElementNode.ReteUnificationNodeViewChangedEventListener
           
 
Nested classes/interfaces inherited from class org.drools.core.reteoo.QueryElementNode
org.drools.core.reteoo.QueryElementNode.QueryElementNodeMemory, org.drools.core.reteoo.QueryElementNode.UnificationNodeViewChangedEventListener
 
Field Summary
 
Fields inherited from class org.drools.core.reteoo.QueryElementNode
openQuery, queryElement
 
Fields inherited from class org.drools.core.reteoo.LeftTupleSource
leftInput, sink
 
Fields inherited from class org.drools.core.common.BaseNode
associations, id, partitionId, partitionsEnabled, streamMode
 
Constructor Summary
ReteQueryElementNode()
           
ReteQueryElementNode(int id, org.drools.core.reteoo.LeftTupleSource tupleSource, org.drools.core.rule.QueryElement queryElement, boolean tupleMemoryEnabled, boolean openQuery, org.drools.core.reteoo.builder.BuildContext context)
           
 
Method Summary
 void assertLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.spi.PropagationContext context, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 void attach(org.drools.core.reteoo.builder.BuildContext context)
           
protected  org.drools.core.reteoo.QueryElementNode.UnificationNodeViewChangedEventListener createCollector(org.drools.core.reteoo.LeftTuple leftTuple, int[] varIndexes, boolean tupleMemoryEnabled)
           
protected  void doCollectAncestors(org.drools.core.reteoo.NodeSet nodeSet)
           
protected  void doRemove(org.drools.core.reteoo.RuleRemovalContext context, org.drools.core.reteoo.ReteooBuilder builder, org.drools.core.common.InternalWorkingMemory[] workingMemories)
           
 void modifyLeftTuple(org.drools.core.common.InternalFactHandle factHandle, org.drools.core.reteoo.ModifyPreviousTuples modifyPreviousTuples, org.drools.core.spi.PropagationContext context, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 void modifyLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.spi.PropagationContext context, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 void retractLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple, org.drools.core.spi.PropagationContext context, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 void updateSink(org.drools.core.reteoo.LeftTupleSink sink, org.drools.core.spi.PropagationContext context, org.drools.core.common.InternalWorkingMemory workingMemory)
           
 
Methods inherited from class org.drools.core.reteoo.QueryElementNode
createDroolsQuery, createFactHandle, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createMemory, createPeer, equals, getLeftTupleSource, getNextLeftTupleSinkNode, getObjectTypeNode, getPreviousLeftTupleSinkNode, getQueryElement, getType, hashCode, isLeftTupleMemoryEnabled, isOpenQuery, networkUpdated, readExternal, setLeftTupleMemoryEnabled, setNextLeftTupleSinkNode, setPreviousLeftTupleSinkNode, toString, writeExternal
 
Methods inherited from class org.drools.core.reteoo.LeftTupleSource
addTupleSink, addTupleSink, addTupleSink, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftNegativeMask, getObjectType, getSinkPropagator, initDeclaredMask, initInferredMask, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSource
 
Methods inherited from class org.drools.core.common.BaseNode
addAssociation, attach, collectAncestors, getAssociations, getId, getPartitionId, isStreamMode, remove, removeAssociation, setId, setPartitionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.core.reteoo.LeftTupleSink
getLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId
 
Methods inherited from interface org.drools.core.common.NetworkNode
getAssociations, getId, getPartitionId
 
Methods inherited from interface org.drools.core.common.MemoryFactory
getId
 

Constructor Detail

ReteQueryElementNode

public ReteQueryElementNode()

ReteQueryElementNode

public ReteQueryElementNode(int id,
                            org.drools.core.reteoo.LeftTupleSource tupleSource,
                            org.drools.core.rule.QueryElement queryElement,
                            boolean tupleMemoryEnabled,
                            boolean openQuery,
                            org.drools.core.reteoo.builder.BuildContext context)
Method Detail

modifyLeftTuple

public void modifyLeftTuple(org.drools.core.common.InternalFactHandle factHandle,
                            org.drools.core.reteoo.ModifyPreviousTuples modifyPreviousTuples,
                            org.drools.core.spi.PropagationContext context,
                            org.drools.core.common.InternalWorkingMemory workingMemory)
Specified by:
modifyLeftTuple in interface org.drools.core.reteoo.LeftTupleSink
Overrides:
modifyLeftTuple in class org.drools.core.reteoo.QueryElementNode

assertLeftTuple

public void assertLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple,
                            org.drools.core.spi.PropagationContext context,
                            org.drools.core.common.InternalWorkingMemory workingMemory)
Specified by:
assertLeftTuple in interface org.drools.core.reteoo.LeftTupleSink
Overrides:
assertLeftTuple in class org.drools.core.reteoo.QueryElementNode

modifyLeftTuple

public void modifyLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple,
                            org.drools.core.spi.PropagationContext context,
                            org.drools.core.common.InternalWorkingMemory workingMemory)
Specified by:
modifyLeftTuple in interface org.drools.core.reteoo.LeftTupleSink
Overrides:
modifyLeftTuple in class org.drools.core.reteoo.QueryElementNode

retractLeftTuple

public void retractLeftTuple(org.drools.core.reteoo.LeftTuple leftTuple,
                             org.drools.core.spi.PropagationContext context,
                             org.drools.core.common.InternalWorkingMemory workingMemory)
Specified by:
retractLeftTuple in interface org.drools.core.reteoo.LeftTupleSink
Overrides:
retractLeftTuple in class org.drools.core.reteoo.QueryElementNode

doCollectAncestors

protected void doCollectAncestors(org.drools.core.reteoo.NodeSet nodeSet)
Overrides:
doCollectAncestors in class org.drools.core.reteoo.QueryElementNode

attach

public void attach(org.drools.core.reteoo.builder.BuildContext context)
Overrides:
attach in class org.drools.core.reteoo.QueryElementNode

doRemove

protected void doRemove(org.drools.core.reteoo.RuleRemovalContext context,
                        org.drools.core.reteoo.ReteooBuilder builder,
                        org.drools.core.common.InternalWorkingMemory[] workingMemories)
Overrides:
doRemove in class org.drools.core.reteoo.QueryElementNode

updateSink

public void updateSink(org.drools.core.reteoo.LeftTupleSink sink,
                       org.drools.core.spi.PropagationContext context,
                       org.drools.core.common.InternalWorkingMemory workingMemory)
Overrides:
updateSink in class org.drools.core.reteoo.QueryElementNode

createCollector

protected org.drools.core.reteoo.QueryElementNode.UnificationNodeViewChangedEventListener createCollector(org.drools.core.reteoo.LeftTuple leftTuple,
                                                                                                          int[] varIndexes,
                                                                                                          boolean tupleMemoryEnabled)
Overrides:
createCollector in class org.drools.core.reteoo.QueryElementNode

Drools :: ReteOO 6.0.0.CR2

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.