public class SegmentUtilities extends Object
| Constructor and Description |
|---|
SegmentUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static SegmentMemory |
createChildSegment(InternalWorkingMemory wm,
LeftTupleNode node) |
static SegmentMemory |
createChildSegmentForTerminalNode(LeftTupleNode node,
Memory memory) |
static void |
createChildSegments(InternalWorkingMemory wm,
SegmentMemory smem,
LeftTupleSinkPropagator sinkProp) |
static SegmentMemory |
createSegmentMemory(LeftTupleSource tupleSource,
InternalWorkingMemory wm)
Initialises the NodeSegment memory for all nodes in the segment.
|
static LeftInputAdapterNode |
getQueryLiaNode(String queryName,
ObjectTypeNode queryOtn) |
static ObjectTypeNode |
getQueryOtn(LeftTupleSource lts) |
static SegmentMemory |
getQuerySegmentMemory(InternalWorkingMemory wm,
LeftTupleSource segmentRoot,
QueryElementNode queryNode) |
static boolean |
inSubNetwork(RightInputAdapterNode riaNode,
LeftTupleSource leftTupleSource)
Is the LeftTupleSource a node in the sub network for the RightInputAdapterNode
To be in the same network, it must be a node is after the two output of the parent
and before the rianode.
|
static boolean |
isRootNode(LeftTupleNode node,
org.kie.api.definition.rule.Rule removingRule)
Returns whether the node is the root of a segment.
|
static boolean |
isSet(int mask,
int bit) |
static boolean |
isTipNode(LeftTupleNode node,
org.kie.api.definition.rule.Rule removingRule)
Returns whether the node is the tip of a segment.
|
public static SegmentMemory createSegmentMemory(LeftTupleSource tupleSource, InternalWorkingMemory wm)
public static SegmentMemory getQuerySegmentMemory(InternalWorkingMemory wm, LeftTupleSource segmentRoot, QueryElementNode queryNode)
public static void createChildSegments(InternalWorkingMemory wm, SegmentMemory smem, LeftTupleSinkPropagator sinkProp)
public static SegmentMemory createChildSegment(InternalWorkingMemory wm, LeftTupleNode node)
public static SegmentMemory createChildSegmentForTerminalNode(LeftTupleNode node, Memory memory)
public static boolean inSubNetwork(RightInputAdapterNode riaNode, LeftTupleSource leftTupleSource)
public static boolean isRootNode(LeftTupleNode node, org.kie.api.definition.rule.Rule removingRule)
node - removingRule - public static boolean isTipNode(LeftTupleNode node, org.kie.api.definition.rule.Rule removingRule)
node - removingRule - public static ObjectTypeNode getQueryOtn(LeftTupleSource lts)
public static LeftInputAdapterNode getQueryLiaNode(String queryName, ObjectTypeNode queryOtn)
public static boolean isSet(int mask,
int bit)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.