Class GeneralComparisonInequalityFeed

All Implemented Interfaces:
Result, Receiver

public class GeneralComparisonInequalityFeed extends AtomicItemFeed
This class is used when a streaming template requests a general comparison with one operand being pushed from the streamed input document, and the other being evaluated in pull mode; used when the operator is "!=" which means we only need to remember one value (the result is true as soon as we find two values that differ).
  • Constructor Details

  • Method Details

    • open

      public void open(Terminator terminator) throws XPathException
      Description copied from class: ItemFeed
      Start evaluating the expression. The default implementation does nothing.
      Overrides:
      open in class ItemFeed
      Parameters:
      terminator - used to achieve early exit
      Throws:
      XPathException - if a dynamic error occurs
    • append

      public void append(Item item) throws XPathException
      Supply an item to the feed
      Specified by:
      append in interface Receiver
      Specified by:
      append in class ItemFeed
      Parameters:
      item - the item being fed (in this case, an item in the "pushed" operand sequence that is being compared
      Throws:
      XPathException - to report any failure
    • close

      public void close() throws XPathException
      Description copied from class: ItemFeed
      Finish evaluating the expression.
      Specified by:
      close in interface Receiver
      Overrides:
      close in class ItemFeed
      Throws:
      XPathException - if a dynamic error occurs