Class TuplePush

java.lang.Object
net.sf.saxon.expr.flwor.TuplePush
Direct Known Subclasses:
ForClauseOuterPush, ForClausePush, LetClausePush, OrderByClausePush, ReturnClausePush, TraceClausePush, WhereClausePush

public abstract class TuplePush extends Object
Abtract class representing a tuple stream (used to evaluate a FLWOR expression) in push mode (where the provider of tuples activates the consumer of those tuples)
  • Constructor Details

    • TuplePush

      public TuplePush()
  • Method Details

    • processTuple

      public abstract void processTuple(XPathContext context) throws XPathException
      Notify the availability of the next tuple. Before calling this method, the supplier of the tuples must set all the variables corresponding to the supplied tuple in the local stack frame associated with the context object
      Parameters:
      context - the dynamic evaluation context
      Throws:
      XPathException - if a dynamic error occurs
    • close

      public void close() throws XPathException
      Close the tuple stream, indicating that no more tuples will be supplied
      Throws:
      XPathException - if a dynamic error occurs