Class Cursors.AbstractCursor

  • All Implemented Interfaces:
    java.util.Iterator<IndexRow>, Cursor
    Direct Known Subclasses:
    Cursors.PathCursor
    Enclosing class:
    Cursors

    public abstract static class Cursors.AbstractCursor
    extends java.lang.Object
    implements Cursor
    A Cursor implementation where the remove method throws an UnsupportedOperationException.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractCursor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSize​(Result.SizePrecision precision, long max)
      Get the size if known.
      void remove()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.jackrabbit.oak.spi.query.Cursor

        next
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext
    • Constructor Detail

      • AbstractCursor

        public AbstractCursor()
    • Method Detail

      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<IndexRow>
      • getSize

        public long getSize​(Result.SizePrecision precision,
                            long max)
        Description copied from interface: Cursor
        Get the size if known.
        Specified by:
        getSize in interface Cursor
        Parameters:
        precision - the required precision
        max - the maximum nodes read (for an exact size)
        Returns:
        the size, or -1 if unknown