public class QueryTerminalNode extends AbstractTerminalNode implements LeftTupleSinkNode
Action s on a
matched Rule.Rule,
Serialized FormPathEndNode.PathMemSpec| Modifier and Type | Field and Description |
|---|---|
protected QueryImpl |
query
The rule to invoke upon match.
|
static short |
type |
associations, hashcode, id, memoryId, partitionId, partitionsEnabled| Constructor and Description |
|---|
QueryTerminalNode() |
QueryTerminalNode(int id,
LeftTupleSource source,
RuleImpl rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
Constructor
|
createMemory, doRemove, getDeclaredMask, getInferredMask, getLeftInferredMask, getLeftTupleSource, getNegativeMask, getObjectTypeNode, getPathEndNodes, getPathMemSpec, getPathNodes, getPathNodes, getPositionInPath, getSinkPropagator, hasPathNode, initDeclaredMask, initInferredMask, initPathMemory, isInUse, isLeftTupleMemoryEnabled, isTerminalNodeOf, networkUpdated, resetPathMemSpec, setDeclaredMask, setInferredMask, setLeftTupleMemoryEnabled, setNegativeMask, setPartitionIdWithSinks, setPathEndNodes, unwrapTupleSourceaddAssociation, addAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setPartitionsEnabled, setStreamModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, isLeftTupleMemoryEnabled, setLeftTupleMemoryEnabled, setPartitionIdWithSinksgetLeftTupleSource, getPositionInPath, getSinkPropagatorgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWithgetMemoryIdcalculatePathMemSpec, calculatePathMemSpec, hasConditionalBranchNodepublic static final short type
protected QueryImpl query
public QueryTerminalNode()
public QueryTerminalNode(int id,
LeftTupleSource source,
RuleImpl rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
id - node IDsource - the tuple source for this noderule - the rule this node belongs tosubrule - the subrule this node belongs tocontext - the current build contextpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractTerminalNodeIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractTerminalNodeIOExceptionpublic QueryImpl getQuery()
public RuleImpl getRule()
getRule in interface TerminalNodegetRule in class AbstractTerminalNodepublic GroupElement getSubRule()
getSubRule in interface TerminalNodepublic boolean isFireDirect()
isFireDirect in interface TerminalNodepublic Declaration[] getAllDeclarations()
getAllDeclarations in interface TerminalNodepublic Declaration[] getRequiredDeclarations()
getRequiredDeclarations in interface TerminalNodepublic int getSubruleIndex()
public LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode in interface LeftTupleSinkNodeprevious - The previous TupleSinkNodepublic LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode in interface LeftTupleSinkNodenext - The next TupleSinkNodepublic short getType()
getType in interface NetworkNodepublic LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic ObjectTypeNode.Id getLeftInputOtnId()
getLeftInputOtnId in interface LeftTupleSinkpublic void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
setLeftInputOtnId in interface LeftTupleSinkpublic LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class AbstractTerminalNodepublic Declaration[] getSalienceDeclarations()
getSalienceDeclarations in interface TerminalNodepublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSourceCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.