Class ObjectSource

    • Field Detail

      • alphaNodeHashingThreshold

        protected int alphaNodeHashingThreshold
      • alphaNodeRangeIndexThreshold

        protected int alphaNodeRangeIndexThreshold
      • declaredMask

        protected org.drools.core.util.bitmask.BitMask declaredMask
      • inferredMask

        protected org.drools.core.util.bitmask.BitMask inferredMask
    • Constructor Detail

      • ObjectSource

        public ObjectSource()
      • ObjectSource

        protected ObjectSource​(int id,
                               org.drools.base.common.RuleBasePartitionId partitionId,
                               boolean partitionsEnabled)
        Single parameter constructor that specifies the unique id of the node.
    • Method Detail

      • getParentObjectSource

        public ObjectSource getParentObjectSource()
      • setParentObjectSource

        public void setParentObjectSource​(ObjectSource source)
      • initDeclaredMask

        public void initDeclaredMask​(BuildContext context)
      • calculateDeclaredMask

        public abstract org.drools.core.util.bitmask.BitMask calculateDeclaredMask​(org.drools.base.base.ObjectType modifiedType,
                                                                                   java.util.List<java.lang.String> settableProperties)
      • resetInferredMask

        public void resetInferredMask()
      • updateMask

        public org.drools.core.util.bitmask.BitMask updateMask​(org.drools.core.util.bitmask.BitMask mask)
      • setPartitionId

        public void setPartitionId​(BuildContext context,
                                   org.drools.base.common.RuleBasePartitionId partitionId)
        Description copied from class: BaseNode
        Sets the partition this node belongs to
        Overrides:
        setPartitionId in class BaseNode
      • setSourcePartitionId

        public final org.drools.base.common.RuleBasePartitionId setSourcePartitionId​(org.drools.base.common.RuleBasePartitionId partitionId)
      • setPartitionIdWithSinks

        public final void setPartitionIdWithSinks​(org.drools.base.common.RuleBasePartitionId partitionId)
      • addObjectSink

        public void addObjectSink​(ObjectSink objectSink)
        Adds the ObjectSink so that it may receive FactHandleImpl propagated from this ObjectSource.
        Parameters:
        objectSink - The ObjectSink to receive propagated FactHandleImpl.
      • removeObjectSink

        public void removeObjectSink​(ObjectSink objectSink)
        Removes the ObjectSink
        Parameters:
        objectSink - The ObjectSink to remove
      • networkUpdated

        public void networkUpdated​(UpdateContext updateContext)
        Description copied from class: BaseNode
        A method that is called for all nodes whose network below them changed, after the change is complete, providing them with an opportunity for state update
        Specified by:
        networkUpdated in class BaseNode
      • isInUse

        public boolean isInUse()
        Description copied from class: BaseNode
        Returns true in case the current node is in use (is referenced by any other node)
        Specified by:
        isInUse in class BaseNode
      • getDeclaredMask

        public org.drools.core.util.bitmask.BitMask getDeclaredMask()