return allLinkedTestMask;
}
private static long processBetaNode(LeftTupleSource tupleSource, InternalWorkingMemory wm, SegmentMemory smem, long nodePosMask, long allLinkedTestMask, boolean updateNodeBit) {
BetaMemory bm;
BetaNode betaNode = (BetaNode) tupleSource;
if (NodeTypeEnums.AccumulateNode == tupleSource.getType()) {
bm = ((AccumulateMemory) smem.createNodeMemory((AccumulateNode) tupleSource, wm)).getBetaMemory();
} else {
bm = (BetaMemory) smem.createNodeMemory(betaNode, wm);
}
// this must be set first, to avoid recursion as sub networks can be initialised multiple ways
// and bm.getSegmentMemory == null check can be used to avoid recursion.
bm.setSegmentMemory(smem);
if (betaNode.isRightInputIsRiaNode()) {
// Iterate to find outermost rianode
RightInputAdapterNode riaNode = (RightInputAdapterNode) betaNode.getRightInput();
//riaNode = getOuterMostRiaNode(riaNode, betaNode.getLeftTupleSource());
// Iterat
LeftTupleSource subnetworkLts = riaNode.getLeftTupleSource();
while (subnetworkLts.getLeftTupleSource() != riaNode.getStartTupleSource()) {