Package org.drools.core.reteoo
Class TupleImpl
java.lang.Object
org.drools.core.reteoo.TupleImpl
- All Implemented Interfaces:
Serializable,BaseTuple,Tuple<TupleImpl>,DoubleLinkedEntry<TupleImpl>,SingleLinkedEntry<TupleImpl>
- Direct Known Subclasses:
LeftTuple,RightTuple
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTupleImpl(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) TupleImpl(InternalFactHandle factHandle, TupleImpl leftTuple, Sink sink) TupleImpl(TupleImpl leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) TupleImpl(TupleImpl leftTuple, TupleImpl rightTuple, TupleImpl currentLeftChild, TupleImpl currentRightChild, Sink sink, boolean leftTupleMemoryEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidvoidbooleanget(int index) get(Declaration declaration) intgetIndex()abstract ObjectTypeNodeIdgetNext()getObject(int index) getObject(Declaration declaration) This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNodegetPeer()Returns the previous nodegetSink()shortshortgetSubTuple(int elements) Returns the ReteTuple that contains the "elements" first elements in this tuple.getTuple(int index) inthashCode()voidbooleanbooleanabstract booleanbooleanbooleanabstract voidreAdd()voidvoidvoidsetBlockedNext(LeftTuple blockerNext) voidsetBlockedPrevious(LeftTuple blockerPrevious) voidsetBlocker(RightTuple blocker) final voidsetContextObject(Object contextObject) voidvoidsetFactHandle(FactHandle handle) voidsetFirstChild(TupleImpl firstChild) voidsetHandleNext(TupleImpl handleNext) voidsetHandlePrevious(TupleImpl handlePrevious) voidsetLastChild(TupleImpl lastChild) voidsetLeftParent(TupleImpl leftParent) voidvoidvoidvoidvoidsetPrevious(TupleImpl previous) Sets the previous nodevoidsetPropagationContext(PropagationContext propagationContext) voidsetRightParent(TupleImpl rightParent) voidsetRightParentNext(TupleImpl rightParentRight) voidsetRightParentPrevious(TupleImpl rightParentLeft) protected voidvoidsetStagedNext(TupleImpl stageNext) voidsetStagedPrevious(TupleImpl stagedPrevious) voidsetStagedType(short stagedType) voidsetStagedTypeForQueries(short stagedTypeForQueries) intsize()protected StringObject[]toObjects(boolean reverse) toString()voidvoidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.core.reteoo.Tuple
findMostRecentPropagationContext, isDeleted, toObjects
-
Field Details
-
handle
-
stagedNext
-
stagedPrevious
-
handlePrevious
-
handleNext
-
memory
-
firstChild
-
lastChild
-
-
Constructor Details
-
TupleImpl
public TupleImpl() -
TupleImpl
-
TupleImpl
-
TupleImpl
public TupleImpl(TupleImpl leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled) -
TupleImpl
-
TupleImpl
-
-
Method Details
-
getObject
-
getContextObject
- Specified by:
getContextObjectin interfaceBaseTuple- Specified by:
getContextObjectin interfaceTuple<TupleImpl>
-
setContextObject
- Specified by:
setContextObjectin interfaceTuple<TupleImpl>
-
getStagedType
public short getStagedType()- Specified by:
getStagedTypein interfaceTuple<TupleImpl>
-
setStagedType
public void setStagedType(short stagedType) - Specified by:
setStagedTypein interfaceTuple<TupleImpl>
-
getFirstChild
- Specified by:
getFirstChildin interfaceTuple<TupleImpl>
-
setFirstChild
- Specified by:
setFirstChildin interfaceTuple<TupleImpl>
-
getLastChild
- Specified by:
getLastChildin interfaceTuple<TupleImpl>
-
setLastChild
- Specified by:
setLastChildin interfaceTuple<TupleImpl>
-
getRightParent
-
setRightParent
-
getRightParentPrevious
-
setRightParentPrevious
-
getRightParentNext
-
setRightParentNext
-
get
-
toFactHandles
- Specified by:
toFactHandlesin interfaceBaseTuple
-
toObjects
-
clearBlocker
public void clearBlocker() -
setBlocker
-
getBlocker
-
getBlockedPrevious
-
setBlockedPrevious
-
getBlockedNext
-
setBlockedNext
-
toString
-
hashCode
public int hashCode() -
equals
-
size
public int size() -
getStagedNext
- Specified by:
getStagedNextin interfaceTuple<TupleImpl>
-
getStagedPrevious
- Specified by:
getStagedPreviousin interfaceTuple<TupleImpl>
-
clearStaged
public void clearStaged()- Specified by:
clearStagedin interfaceTuple<TupleImpl>
-
getPeer
-
setPeer
-
getSubTuple
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<TupleImpl>- 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
-
toExternalString
-
clear
public void clear() -
getFactHandle
- Specified by:
getFactHandlein interfaceBaseTuple
-
getOriginalFactHandle
This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNode- Specified by:
getOriginalFactHandlein interfaceTuple<TupleImpl>
-
setFactHandle
- Specified by:
setFactHandlein interfaceTuple<TupleImpl>
-
getPropagationContext
- Specified by:
getPropagationContextin interfaceTuple<TupleImpl>
-
setPropagationContext
- Specified by:
setPropagationContextin interfaceTuple<TupleImpl>
-
setStagedNext
- Specified by:
setStagedNextin interfaceTuple<TupleImpl>
-
setStagedPrevious
- Specified by:
setStagedPreviousin interfaceTuple<TupleImpl>
-
getPrevious
Description copied from interface:DoubleLinkedEntryReturns the previous node- Specified by:
getPreviousin interfaceDoubleLinkedEntry<TupleImpl>- Returns:
- The previous LinkedListNode
-
setPrevious
Description copied from interface:DoubleLinkedEntrySets the previous node- Specified by:
setPreviousin interfaceDoubleLinkedEntry<TupleImpl>- Parameters:
previous- The previous LinkedListNode
-
getNext
- Specified by:
getNextin interfaceSingleLinkedEntry<TupleImpl>
-
setNext
- Specified by:
setNextin interfaceSingleLinkedEntry<TupleImpl>
-
get
-
getTuple
-
getRootTuple
- Specified by:
getRootTuplein interfaceTuple<TupleImpl>
-
skipEmptyHandles
- Specified by:
skipEmptyHandlesin interfaceBaseTuple- Specified by:
skipEmptyHandlesin interfaceTuple<TupleImpl>
-
getLeftParent
-
setLeftParent
-
getNextParentWithHandle
-
reAdd
public abstract void reAdd() -
reAddLeft
public void reAddLeft() -
reAddRight
public void reAddRight() -
unlinkFromLeftParent
public void unlinkFromLeftParent()- Specified by:
unlinkFromLeftParentin interfaceTuple<TupleImpl>
-
unlinkFromRightParent
public void unlinkFromRightParent()- Specified by:
unlinkFromRightParentin interfaceTuple<TupleImpl>
-
doUnlinkFromRightParent
public void doUnlinkFromRightParent() -
getIndex
public int getIndex() -
setLeftTupleSink
-
getHandlePrevious
- Specified by:
getHandlePreviousin interfaceTuple<TupleImpl>
-
setHandlePrevious
- Specified by:
setHandlePreviousin interfaceTuple<TupleImpl>
-
getHandleNext
- Specified by:
getHandleNextin interfaceTuple<TupleImpl>
-
setHandleNext
- Specified by:
setHandleNextin interfaceTuple<TupleImpl>
-
isExpired
public boolean isExpired() -
setExpired
public void setExpired() -
getSink
-
setSink
-
getMemory
-
setMemory
-
initPeer
-
getObject
-
getInputOtnId
- Specified by:
getInputOtnIdin interfaceTuple<TupleImpl>
-
getFactHandleForEvaluation
-
getStagedTypeForQueries
public short getStagedTypeForQueries() -
setStagedTypeForQueries
public void setStagedTypeForQueries(short stagedTypeForQueries) -
isStagedOnRight
public boolean isStagedOnRight() -
getAccumulatedObjects
-
isLeftTuple
public abstract boolean isLeftTuple() -
isFullMatch
public boolean isFullMatch() -
isSubnetworkTuple
public boolean isSubnetworkTuple()
-