Class TuplePush

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

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

      protected TuplePush(Outputter outputter)
  • Method Details

    • getOutputter

      protected Outputter getOutputter()
    • 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