Class RETEQueue
java.lang.Object
org.apache.jena.reasoner.rulesys.impl.RETEQueue
- All Implemented Interfaces:
RETENode
,RETESinkNode
,RETESourceNode
Represents one input left of a join node. The queue points to a sibling queue
representing the other leg which should be joined against.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone
(Map<RETENode, RETENode> netCopy, RETERuleContext context) Clone this node in the network.void
fire
(BindingVector env, boolean isAdd) Propagate a token to this node.void
setContinuation
(RETESinkNode continuation) Set the continuation node for this node (and any sibling)void
setSibling
(RETEQueue sibling) Set the sibling for this node.
-
Constructor Details
-
RETEQueue
public RETEQueue(byte[] matchIndices) Constructor. The queue is not usable until it has been bound to a sibling and a continuation node.- Parameters:
matchIndices
- set of variable indices which should match between the two inputs
-
RETEQueue
Constructor. The queue is not usable until it has been bound to a sibling and a continuation node.- Parameters:
matchIndexList
- List of variable indices which should match between the two inputs
-
-
Method Details
-
setSibling
Set the sibling for this node. -
setContinuation
Set the continuation node for this node (and any sibling)- Specified by:
setContinuation
in interfaceRETESourceNode
-
fire
Propagate a token to this node.- Specified by:
fire
in interfaceRETESinkNode
- Parameters:
env
- a set of variable bindings for the rule being processed.isAdd
- distinguishes between add and remove operations.
-
clone
Clone this node in the network.
-