Class PushToPull

java.lang.Object
com.saxonica.ee.parallel.PushToPull

public class PushToPull extends Object
This class evaluates an expression in push mode in one thread, and provides an iterator to read the results of the expression in pull mode in the original thread.

It is used when an xsl:stream instruction is executed in pull mode, for example when it is called within a function. It is also used for the implicit xsl:stream instruction executed during streamed merging.

Since:
9.7. This class replaces the Conduit class used in previous Saxon releases, which used a home-grown equivalent of the BlockingQueue.
  • Constructor Details

  • Method Details

    • getIterator

      public SequenceIterator getIterator()
      Get an iterator over the result of evaluating the supplied expression.
      Returns:
      an iterator. Calls to next() on this iterator will read items from the queue, waiting if necessary until the next item becomes available.