Class FnSubsequence

  • Direct Known Subclasses:
    UtilRange

    public class FnSubsequence
    extends StandardFunc
    Function implementation.
    Author:
    BaseX Team 2005-23, BSD License, Christian Gruen
    • Constructor Detail

      • FnSubsequence

        public FnSubsequence()
    • Method Detail

      • iter

        public Iter iter​(QueryContext qc)
                  throws QueryException
        Description copied from class: Expr
        Evaluates the expression and returns an iterator on the resulting items. The implementation of this method is optional.
        Overrides:
        iter in class ParseExpr
        Parameters:
        qc - query context
        Returns:
        iterator
        Throws:
        QueryException - query exception
      • start

        public long start​(double value)
        Returns the start position.
        Parameters:
        value - double value
        Returns:
        long value
      • end

        public long end​(long first,
                        double second)
        Computes the count of items to be returned.
        Parameters:
        first - first argument
        second - second argument
        Returns:
        length
      • ddo

        public final boolean ddo()
        Description copied from class: Expr
        Indicates if this expression returns items in document order without duplicates.
        Overrides:
        ddo in class Expr
        Returns:
        result of check