Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1294

Add size() and hasNext() methods to cursors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.5.4
    • 2.0.0-M16
    • None
    • None

    Description

      The cursor implementation currently does not have the size() and hasNext() methods. They would be very helpful in ma,ny places.

      For instance, the paged search control requires that the response control contains the expected size. The hasNext() method could help to avoid a next() and previous() calls to check if we have one more entry available in the cursor.

      Attachments

        1. size_has.patch
          27 kB
          Felix Knecht

        Activity

          People

            felixk Felix Knecht
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: