Package org.drools.core.reteoo
Class RightTupleImpl
- java.lang.Object
-
- org.drools.core.reteoo.AbstractTuple
-
- org.drools.core.reteoo.RightTupleImpl
-
- All Implemented Interfaces:
java.io.Serializable,org.drools.base.reteoo.BaseTuple,RightTuple,Tuple,Entry<AbstractTuple>
- Direct Known Subclasses:
WindowTuple
public class RightTupleImpl extends AbstractTuple implements RightTuple
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.drools.core.reteoo.AbstractTuple
handle, handleNext, handlePrevious, stagedNext, stagedPrevious
-
-
Constructor Summary
Constructors Constructor Description RightTupleImpl()RightTupleImpl(InternalFactHandle handle)RightTupleImpl(InternalFactHandle handle, RightTupleSink sink)
-
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.base.reteoo.BaseTuple
get, getFactHandle, getObject, getTuple
-
Methods inherited from interface org.drools.core.reteoo.Tuple
findMostRecentPropagationContext, getContextObject, getOriginalFactHandle, getPrevious, getPropagationContext, getRootTuple, getStagedType, isDeleted, isExpired, setContextObject, setFactHandle, setHandleNext, setHandlePrevious, setPrevious, setPropagationContext, setStagedNext, setStagedPrevious, setStagedType, skipEmptyHandles, toObjects
-
-
-
-
Constructor Detail
-
RightTupleImpl
public RightTupleImpl()
-
RightTupleImpl
public RightTupleImpl(InternalFactHandle handle)
-
RightTupleImpl
public RightTupleImpl(InternalFactHandle handle, RightTupleSink sink)
-
-
Method Detail
-
getTupleSink
public RightTupleSink getTupleSink()
- Specified by:
getTupleSinkin interfaceTuple
-
unlinkFromRightParent
public void unlinkFromRightParent()
- Specified by:
unlinkFromRightParentin interfaceTuple
-
unlinkFromLeftParent
public void unlinkFromLeftParent()
- Specified by:
unlinkFromLeftParentin interfaceTuple
-
getBlocked
public LeftTuple getBlocked()
- Specified by:
getBlockedin interfaceRightTuple
-
setBlocked
public void setBlocked(LeftTuple leftTuple)
- Specified by:
setBlockedin interfaceRightTuple
-
addBlocked
public void addBlocked(LeftTuple leftTuple)
- Specified by:
addBlockedin interfaceRightTuple
-
removeBlocked
public void removeBlocked(LeftTuple leftTuple)
- Specified by:
removeBlockedin interfaceRightTuple
-
getHandlePrevious
public RightTuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple- Overrides:
getHandlePreviousin classAbstractTuple
-
getHandleNext
public RightTuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple- Overrides:
getHandleNextin classAbstractTuple
-
getFirstChild
public LeftTuple getFirstChild()
- Specified by:
getFirstChildin interfaceTuple
-
setFirstChild
public void setFirstChild(LeftTuple firstChild)
- Specified by:
setFirstChildin interfaceTuple
-
getLastChild
public LeftTuple getLastChild()
- Specified by:
getLastChildin interfaceTuple
-
setLastChild
public void setLastChild(LeftTuple lastChild)
- Specified by:
setLastChildin interfaceTuple
-
getStagedNext
public RightTuple getStagedNext()
- Specified by:
getStagedNextin interfaceTuple
-
getStagedPrevious
public RightTuple getStagedPrevious()
- Specified by:
getStagedPreviousin interfaceTuple
-
getTempBlocked
public LeftTuple getTempBlocked()
- Specified by:
getTempBlockedin interfaceRightTuple
-
setTempBlocked
public void setTempBlocked(LeftTuple tempBlocked)
- Specified by:
setTempBlockedin interfaceRightTuple
-
getTempNextRightTuple
public RightTuple getTempNextRightTuple()
- Specified by:
getTempNextRightTuplein interfaceRightTuple
-
setTempNextRightTuple
public void setTempNextRightTuple(RightTuple tempNextRightTuple)
- Specified by:
setTempNextRightTuplein interfaceRightTuple
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
clear
public void clear()
- Specified by:
clearin interfaceTuple- Overrides:
clearin classAbstractTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple- Overrides:
clearStagedin classAbstractTuple
-
getObject
public java.lang.Object getObject(int pattern)
- Specified by:
getObjectin interfaceorg.drools.base.reteoo.BaseTuple
-
size
public int size()
- Specified by:
sizein interfaceorg.drools.base.reteoo.BaseTuple
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceorg.drools.base.reteoo.BaseTuple
-
toObjects
public java.lang.Object[] toObjects(boolean reverse)
- Specified by:
toObjectsin interfaceorg.drools.base.reteoo.BaseTuple
-
get
public InternalFactHandle get(int pattern)
- Specified by:
getin interfaceorg.drools.base.reteoo.BaseTuple
-
toFactHandles
public InternalFactHandle[] toFactHandles()
- Specified by:
toFactHandlesin interfaceorg.drools.base.reteoo.BaseTuple
-
getParent
public Tuple getParent()
-
getSubTuple
public Tuple 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;- Specified by:
getSubTuplein interfaceTuple- 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;
-
getInputOtnId
public ObjectTypeNode.Id getInputOtnId()
- Specified by:
getInputOtnIdin interfaceTuple
-
getTupleSource
public LeftTupleSource getTupleSource()
- Specified by:
getTupleSourcein interfaceTuple
-
retractTuple
public void retractTuple(PropagationContext context, ReteEvaluator reteEvaluator)
- Specified by:
retractTuplein interfaceRightTuple
-
setExpired
public void setExpired(ReteEvaluator reteEvaluator, PropagationContext pctx)
- Specified by:
setExpiredin interfaceRightTuple
-
getFactHandleForEvaluation
public InternalFactHandle getFactHandleForEvaluation()
- Specified by:
getFactHandleForEvaluationin interfaceRightTuple
-
-