Interface InternalFactHandle

All Superinterfaces:
Cloneable, FactHandle, Serializable
All Known Implementing Classes:
DefaultEventHandle, DefaultFactHandle, DisconnectedFactHandle, InternalFactHandle.DummyFactHandle, QueryElementFactHandle

public interface InternalFactHandle extends FactHandle, Cloneable, Serializable
  • Method Details

    • getId

      long getId()
      Specified by:
      getId in interface FactHandle
    • getRecency

      long getRecency()
      Specified by:
      getRecency in interface FactHandle
    • getObject

      Object getObject()
      Specified by:
      getObject in interface FactHandle
    • getObjectClassName

      String getObjectClassName()
    • setObject

      void setObject(Object object)
    • setEqualityKey

      void setEqualityKey(EqualityKey key)
    • getEqualityKey

      EqualityKey getEqualityKey()
    • setRecency

      void setRecency(long recency)
    • invalidate

      void invalidate()
    • isValid

      boolean isValid()
      Specified by:
      isValid in interface FactHandle
    • getIdentityHashCode

      int getIdentityHashCode()
    • getObjectHashCode

      int getObjectHashCode()
    • isDisconnected

      boolean isDisconnected()
    • setDisconnected

      default void setDisconnected(boolean disconnected)
    • isEvent

      boolean isEvent()
      Returns true if this FactHandle represents and Event or false if this FactHandle represents a regular Fact
      Specified by:
      isEvent in interface FactHandle
      Returns:
    • isTraitOrTraitable

      boolean isTraitOrTraitable()
    • isTraitable

      boolean isTraitable()
    • isTraiting

      boolean isTraiting()
    • getTraitType

      TraitTypeEnum getTraitType()
    • getFirstRightTuple

      TupleImpl getFirstRightTuple()
    • getFirstLeftTuple

      TupleImpl getFirstLeftTuple()
    • getReteEvaluator

      default ReteEvaluator getReteEvaluator()
    • getEntryPointId

      EntryPointId getEntryPointId()
    • getEntryPointName

      default String getEntryPointName()
    • getEntryPoint

      WorkingMemoryEntryPoint getEntryPoint(ReteEvaluator reteEvaluator)
    • clone

    • toExternalForm

      String toExternalForm()
      Specified by:
      toExternalForm in interface FactHandle
    • disconnect

      void disconnect()
    • addFirstLeftTuple

      void addFirstLeftTuple(TupleImpl leftTuple)
    • addLastLeftTuple

      void addLastLeftTuple(TupleImpl leftTuple)
    • removeLeftTuple

      void removeLeftTuple(TupleImpl leftTuple)
    • clearLeftTuples

      void clearLeftTuples()
    • clearRightTuples

      void clearRightTuples()
    • addLastRightTuple

      void addLastRightTuple(TupleImpl rightTuple)
    • removeRightTuple

      void removeRightTuple(TupleImpl rightTuple)
    • isNegated

      boolean isNegated()
      Specified by:
      isNegated in interface FactHandle
    • setNegated

      void setNegated(boolean negated)
    • isExpired

      boolean isExpired()
    • isPendingRemoveFromStore

      boolean isPendingRemoveFromStore()
    • forEachRightTuple

      void forEachRightTuple(Consumer<TupleImpl> rightTupleConsumer)
    • forEachLeftTuple

      void forEachLeftTuple(Consumer<TupleImpl> leftTupleConsumer)
    • findFirstLeftTuple

      TupleImpl findFirstLeftTuple(Predicate<TupleImpl> lefttTuplePredicate)
    • detachLinkedTuples

      InternalFactHandle.LinkedTuples detachLinkedTuples()
    • detachLinkedTuplesForPartition

      InternalFactHandle.LinkedTuples detachLinkedTuplesForPartition(int i)
    • getLinkedTuples

    • hasMatches

      default boolean hasMatches()
    • dummyFactHandleOf

      static InternalFactHandle dummyFactHandleOf(Object object)