Package org.drools.core.reteoo
Interface Tuple<T extends TupleImpl>
- All Superinterfaces:
BaseTuple,DoubleLinkedEntry<TupleImpl>,Serializable,SingleLinkedEntry<TupleImpl>
- All Known Implementing Classes:
EvalNodeLeftTuple,LeftTuple,NotNodeLeftTuple,ReactiveFromNodeLeftTuple,RightTuple,RuleTerminalNodeLeftTuple,SubnetworkTuple,TupleImpl,WindowTuple
public interface Tuple<T extends TupleImpl>
extends BaseTuple, Serializable, DoubleLinkedEntry<TupleImpl>
Partial matches are propagated through the Rete network as
Tuples. Each Tuple
Is able to return the FactHandleImpl members of the partial match for the requested pattern.
The pattern refers to the index position of the FactHandleImpl in the underlying implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddefault PropagationContextgetSink()shortgetSubTuple(int elements) Returns the ReteTuple that contains the "elements" first elements in this tuple.default booleanbooleanvoidreAdd()voidsetContextObject(Object object) voidsetFactHandle(FactHandle handle) voidsetFirstChild(T firstChild) voidsetHandleNext(T leftParentright) voidsetHandlePrevious(T leftParentLeft) voidsetLastChild(T firstChild) voidvoidsetPropagationContext(PropagationContext propagationContext) voidsetStagedNext(T stageNext) voidsetStagedPrevious(T stagePrevious) voidsetStagedType(short stagedType) default Object[]voidvoidMethods inherited from interface org.drools.base.reteoo.BaseTuple
get, get, getFactHandle, getIndex, getObject, getObject, getTuple, size, toFactHandles, toObjectsMethods inherited from interface org.drools.core.util.DoubleLinkedEntry
getPrevious, setPreviousMethods inherited from interface org.drools.core.util.SingleLinkedEntry
getNext, setNext
-
Field Details
-
NONE
static final short NONE- See Also:
-
INSERT
static final short INSERT- See Also:
-
UPDATE
static final short UPDATE- See Also:
-
DELETE
static final short DELETE- See Also:
-
NORMALIZED_DELETE
static final short NORMALIZED_DELETE- See Also:
-
-
Method Details
-
toObjects
-
setFactHandle
-
getOriginalFactHandle
InternalFactHandle getOriginalFactHandle() -
getSubTuple
Returns the ReteTuple that contains the "elements" first elements in this tuple. Use carefully as no cloning is made during this process. This method is used by TupleStartEqualsConstraint when joining a subnetwork tuple into the main network tuple;- Parameters:
elements- the number of elements to return, starting from the begining of the tuple- Returns:
- a ReteTuple containing the "elements" first elements of this tuple or null if "elements" is greater than size;
-
getContextObject
Object getContextObject()- Specified by:
getContextObjectin interfaceBaseTuple
-
setContextObject
-
getStagedType
short getStagedType() -
setStagedType
void setStagedType(short stagedType) -
isDeleted
default boolean isDeleted() -
getStagedPrevious
T getStagedPrevious() -
setStagedPrevious
-
getStagedNext
T getStagedNext() -
setStagedNext
-
clear
void clear()- Specified by:
clearin interfaceDoubleLinkedEntry<T extends TupleImpl>
-
clearStaged
void clearStaged() -
reAdd
void reAdd() -
unlinkFromRightParent
void unlinkFromRightParent() -
unlinkFromLeftParent
void unlinkFromLeftParent() -
getPropagationContext
PropagationContext getPropagationContext() -
setPropagationContext
-
getSink
Sink getSink() -
getMemory
TupleList getMemory() -
setMemory
-
getRootTuple
T getRootTuple() -
skipEmptyHandles
T skipEmptyHandles()- Specified by:
skipEmptyHandlesin interfaceBaseTuple
-
getFirstChild
T getFirstChild() -
setFirstChild
-
getLastChild
T getLastChild() -
setLastChild
-
getParent
T getParent() -
getHandlePrevious
T getHandlePrevious() -
setHandlePrevious
-
getHandleNext
T getHandleNext() -
setHandleNext
-
getInputOtnId
ObjectTypeNodeId getInputOtnId() -
isExpired
boolean isExpired() -
findMostRecentPropagationContext
-