Class Cursors.AbstractCursor

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

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

      • AbstractCursor

        public AbstractCursor()
    • Method Detail

      • 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