/** * Construct a new minor context. A minor context can only hold new values of the focus * (currentIterator) and current output destination. */ public XPathContextMinor newMinorContext() { return newContext().newMinorContext(); // notAllowed(); // return null; }
/** * Construct a new minor context. A minor context can only hold new values of the focus * (currentIterator) and current output destination. */ public XPathContextMinor newMinorContext() { return newContext().newMinorContext(); // notAllowed(); // return null; }
/** * Construct a new minor context. A minor context can only hold new values of the focus * (currentIterator) and current output destination. */ public XPathContextMinor newMinorContext() { return newContext().newMinorContext(); // notAllowed(); // return null; }
state = BUSY; Controller controller = context.getController(); XPathContext c2 = savedXPathContext.newMinorContext();
state = BUSY; Controller controller = context.getController(); XPathContext c2 = savedXPathContext.newMinorContext();
state = BUSY; Controller controller = context.getController(); XPathContext c2 = savedXPathContext.newMinorContext();
public SequenceIterator<?> iterate(XPathContext context) throws XPathException { try { AtomicComparer[] comps = getComparators(context); GroupIterator mgi = context.getCurrentMergeGroupIterator(); final XPathContextMajor c1 = context.newContext(); c1.setCurrentMergeGroupIterator(mgi); SequenceIterator<?> inputIterator = getMergedInputIterator(context, comps, c1); // Now perform the merge into a grouped sequence inputIterator = new MergeGroupingIterator(inputIterator, getComparer(mergeSources[0].mergeKeyDefinitions, comps), getLastPositionFinder(context)); // and apply the merging action to each group of duplicate items within this sequence c1.setCurrentMergeGroupIterator((GroupIterator) inputIterator); XPathContext c3 = c1.newMinorContext(); c3.trackFocus(inputIterator); return new ContextMappingIterator<>(cxt -> getAction().iterate(cxt), c3); } catch (XPathException e) { e.maybeSetLocation(getLocation()); throw e; } }
public SequenceIterator<?> iterate(XPathContext context) throws XPathException { try { AtomicComparer[] comps = getComparators(context); GroupIterator mgi = context.getCurrentMergeGroupIterator(); final XPathContextMajor c1 = context.newContext(); c1.setCurrentMergeGroupIterator(mgi); SequenceIterator<?> inputIterator = getMergedInputIterator(context, comps, c1); // Now perform the merge into a grouped sequence inputIterator = new MergeGroupingIterator(inputIterator, getComparer(mergeSources[0].mergeKeyDefinitions, comps), getLastPositionFinder(context)); // and apply the merging action to each group of duplicate items within this sequence c1.setCurrentMergeGroupIterator((GroupIterator) inputIterator); XPathContext c3 = c1.newMinorContext(); c3.trackFocus(inputIterator); return new ContextMappingIterator<>(cxt -> getAction().iterate(cxt), c3); } catch (XPathException e) { e.maybeSetLocation(getLocation()); throw e; } }
return node; }); XPathContext c2 = c1.newMinorContext(); FocusIterator anchorsIterFocus = c2.trackFocus(anchorsIter); while (anchorsIterFocus.next() != null) { XPathContext c2 = c1.newMinorContext(); FocusIterator anchorsIterFocus = c2.trackFocus(anchorsIter); while (anchorsIterFocus.next() != null) {
return node; }); XPathContext c2 = c1.newMinorContext(); FocusIterator anchorsIterFocus = c2.trackFocus(anchorsIter); while (anchorsIterFocus.next() != null) { XPathContext c2 = c1.newMinorContext(); FocusIterator anchorsIterFocus = c2.trackFocus(anchorsIter); while (anchorsIterFocus.next() != null) {