Class NodeIter

  • Direct Known Subclasses:
    BasicNodeIter

    public abstract class NodeIter
    extends Iter
    ANode iterator interface.
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Constructor Detail

      • NodeIter

        public NodeIter()
    • Method Detail

      • next

        public abstract ANode next()
                            throws QueryException
        Description copied from class: Iter
        Returns the next item.
        Specified by:
        next in class Iter
        Returns:
        resulting item, or null if all items have been returned
        Throws:
        QueryException - query exception
      • get

        public ANode get​(long i)
        Description copied from class: Iter
        Returns the specified item, or an arbitrary item if the index is invalid. If this method returns items, Iter.size() needs to be implemented as well.
        Overrides:
        get in class Iter
        Parameters:
        i - value offset (starting with 0)
        Returns:
        specified item or null
      • size

        public long size()
        Description copied from class: Iter
        Returns the iterator size. -1 is returned if the result size is unknown. If this method returns a positive value, Iter.get(long) needs to be implemented as well.
        Overrides:
        size in class Iter
        Returns:
        number of entries