Package org.drools.core.reteoo
Class CompositePartitionAwareObjectSinkAdapter
- java.lang.Object
-
- org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ObjectSinkPropagator
public class CompositePartitionAwareObjectSinkAdapter extends Object implements ObjectSinkPropagator
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositePartitionAwareObjectSinkAdapter.HashedInsert
static class
CompositePartitionAwareObjectSinkAdapter.Insert
-
Constructor Summary
Constructors Constructor Description CompositePartitionAwareObjectSinkAdapter()
-
Method Summary
-
-
-
Method Detail
-
isHashed
public boolean isHashed()
-
addObjectSink
public ObjectSinkPropagator addObjectSink(ObjectSink sink, int alphaNodeHashingThreshold, int alphaNodeRangeIndexThreshold)
- Specified by:
addObjectSink
in interfaceObjectSinkPropagator
-
removeObjectSink
public ObjectSinkPropagator removeObjectSink(ObjectSink sink)
- Specified by:
removeObjectSink
in interfaceObjectSinkPropagator
-
changeSinkPartition
public void changeSinkPartition(ObjectSink sink, RuleBasePartitionId oldPartition, RuleBasePartitionId newPartition, int alphaNodeHashingThreshold, int alphaNodeRangeIndexThreshold)
- Specified by:
changeSinkPartition
in interfaceObjectSinkPropagator
-
propagateAssertObject
public void propagateAssertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
propagateAssertObject
in interfaceObjectSinkPropagator
-
getMatchingNode
public BaseNode getMatchingNode(BaseNode candidate)
- Specified by:
getMatchingNode
in interfaceObjectSinkPropagator
-
getSinks
public ObjectSink[] getSinks()
- Specified by:
getSinks
in interfaceObjectSinkPropagator
-
size
public int size()
- Specified by:
size
in interfaceObjectSinkPropagator
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceObjectSinkPropagator
-
getPartitionedPropagators
public ObjectSinkPropagator[] getPartitionedPropagators()
-
propagateModifyObject
public void propagateModifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
propagateModifyObject
in interfaceObjectSinkPropagator
-
propagateModifyObjectForPartition
public void propagateModifyObjectForPartition(InternalFactHandle handle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory wm, int partition)
-
byPassModifyToBetaNode
public void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
byPassModifyToBetaNode
in interfaceObjectSinkPropagator
-
doLinkRiaNode
public void doLinkRiaNode(InternalWorkingMemory wm)
- Specified by:
doLinkRiaNode
in interfaceObjectSinkPropagator
-
doUnlinkRiaNode
public void doUnlinkRiaNode(InternalWorkingMemory wm)
- Specified by:
doUnlinkRiaNode
in interfaceObjectSinkPropagator
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
asNonPartitionedSinkPropagator
public ObjectSinkPropagator asNonPartitionedSinkPropagator(int alphaNodeHashingThreshold, int alphaNodeRangeIndexThreshold)
-
getUsedPartitionsCount
public int getUsedPartitionsCount()
-
-