SegmentMemory newSmem = SegmentUtilities.createChildSegment(wm, peerLts, memory);
sm.add(newSmem);
if ( sm.getTipNode().getType() == NodeTypeEnums.LeftInputAdapterNode ) {
// If LiaNode is in it's own segment, then the segment first after that must use SynchronizedLeftTupleSets
newSmem.setStagedTuples( new SynchronizedLeftTupleSets() );
}
}
Memory memory = wm.getNodeMemory((MemoryFactory) peerLts);
SegmentMemory newSmem = SegmentUtilities.createChildSegment(wm, peerLts, memory);
sm.add(newSmem);
if ( sm.getTipNode().getType() == NodeTypeEnums.LeftInputAdapterNode ) {
// If LiaNode is in it's own segment, then the segment first after that must use SynchronizedLeftTupleSets
newSmem.setStagedTuples( new SynchronizedLeftTupleSets() );
}
LeftTupleSource lts;
if ( NodeTypeEnums.isTerminalNode(sm.getTipNode() ) ) {
// if tip is RTN, then use parent