Package org.drools.core.reteoo
Class LeftTuple
- java.lang.Object
-
- org.drools.core.reteoo.AbstractTuple
-
- org.drools.core.reteoo.LeftTuple
-
- All Implemented Interfaces:
java.io.Serializable,org.drools.base.reteoo.BaseTuple,Tuple,Entry<AbstractTuple>
- Direct Known Subclasses:
EvalNodeLeftTuple,JoinNodeLeftTuple,NotNodeLeftTuple,RuleTerminalNodeLeftTuple,SubnetworkTuple
public class LeftTuple extends AbstractTuple
A parent class for all specific LeftTuple specializations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TupleListmemory-
Fields inherited from class org.drools.core.reteoo.AbstractTuple
handle, handleNext, handlePrevious, stagedNext, stagedPrevious
-
-
Constructor Summary
Constructors Constructor Description LeftTuple()LeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)LeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink, boolean leftTupleMemoryEnabled)LeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
-
Method Summary
-
Methods inherited from class org.drools.core.reteoo.AbstractTuple
get, getContextObject, getFactHandle, getNext, getObject, getOriginalFactHandle, getPrevious, getPropagationContext, getRootTuple, getSink, getStagedType, getTuple, isExpired, setContextObject, setExpired, setFactHandle, setHandleNext, setHandlePrevious, setNext, setPrevious, setPropagationContext, setSink, setStagedNext, setStagedPrevious, setStagedType, skipEmptyHandles
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.core.reteoo.Tuple
findMostRecentPropagationContext, isDeleted, toObjects
-
-
-
-
Field Detail
-
memory
protected TupleList memory
-
-
Constructor Detail
-
LeftTuple
public LeftTuple()
-
LeftTuple
public LeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
-
LeftTuple
public LeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
-
LeftTuple
public LeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
-
LeftTuple
public LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
-
LeftTuple
public LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink, boolean leftTupleMemoryEnabled)
-
LeftTuple
public LeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
-
-
Method Detail
-
getNextParentWithHandle
public LeftTuple getNextParentWithHandle()
-
reAdd
public void reAdd()
-
reAddLeft
public void reAddLeft()
-
reAddRight
public void reAddRight()
-
unlinkFromLeftParent
public void unlinkFromLeftParent()
-
unlinkFromRightParent
public void unlinkFromRightParent()
-
getIndex
public int getIndex()
-
getTupleSink
public LeftTupleSink getTupleSink()
-
setLeftTupleSink
public void setLeftTupleSink(LeftTupleSink sink)
-
getLeftParent
public LeftTuple getLeftParent()
-
setLeftParent
public void setLeftParent(LeftTuple leftParent)
-
getHandlePrevious
public LeftTuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple- Overrides:
getHandlePreviousin classAbstractTuple
-
getHandleNext
public LeftTuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple- Overrides:
getHandleNextin classAbstractTuple
-
getRightParent
public RightTuple getRightParent()
-
setRightParent
public void setRightParent(RightTuple rightParent)
-
getRightParentPrevious
public LeftTuple getRightParentPrevious()
-
setRightParentPrevious
public void setRightParentPrevious(LeftTuple rightParentLeft)
-
getRightParentNext
public LeftTuple getRightParentNext()
-
setRightParentNext
public void setRightParentNext(LeftTuple rightParentRight)
-
get
public org.kie.api.runtime.rule.FactHandle get(int index)
-
toFactHandles
public org.kie.api.runtime.rule.FactHandle[] toFactHandles()
-
toObjects
public java.lang.Object[] toObjects(boolean reverse)
-
clearBlocker
public void clearBlocker()
-
setBlocker
public void setBlocker(RightTuple blocker)
-
getBlocker
public RightTuple getBlocker()
-
getBlockedPrevious
public LeftTuple getBlockedPrevious()
-
setBlockedPrevious
public void setBlockedPrevious(LeftTuple blockerPrevious)
-
getBlockedNext
public LeftTuple getBlockedNext()
-
setBlockedNext
public void setBlockedNext(LeftTuple blockerNext)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
size
public int size()
-
getFirstChild
public LeftTuple getFirstChild()
-
setFirstChild
public void setFirstChild(LeftTuple firstChild)
-
getLastChild
public LeftTuple getLastChild()
-
setLastChild
public void setLastChild(LeftTuple lastChild)
-
getMemory
public TupleList getMemory()
-
setMemory
public void setMemory(TupleList memory)
-
getStagedNext
public LeftTuple getStagedNext()
-
getStagedPrevious
public LeftTuple getStagedPrevious()
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple- Overrides:
clearStagedin classAbstractTuple
-
getPeer
public LeftTuple getPeer()
-
setPeer
public void setPeer(LeftTuple peer)
-
getSubTuple
public LeftTuple getSubTuple(int elements)
Description copied from interface:TupleReturns 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;
-
getParent
public LeftTuple getParent()
-
toExternalString
protected java.lang.String toExternalString()
-
clear
public void clear()
- Specified by:
clearin interfaceTuple- Overrides:
clearin classAbstractTuple
-
initPeer
public void initPeer(LeftTuple original, LeftTupleSink sink)
-
getObject
public java.lang.Object getObject(int index)
-
getInputOtnId
public ObjectTypeNode.Id getInputOtnId()
-
getTupleSource
public LeftTupleSource getTupleSource()
-
getStagedTypeForQueries
public short getStagedTypeForQueries()
-
setStagedTypeForQueries
public void setStagedTypeForQueries(short stagedTypeForQueries)
-
isStagedOnRight
public boolean isStagedOnRight()
-
getAccumulatedObjects
public java.util.Collection<java.lang.Object> getAccumulatedObjects()
-
-