directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Commented: (DIRSERVER-1294) Add size() and hasNext() methods to cursors
Date Sat, 30 Oct 2010 17:44:20 GMT


Emmanuel Lecharny commented on DIRSERVER-1294:

Actually, I have no idea if it's easily feasible. 

I must admit I created this issue as I know for sure that we will like to have those methods,
but it obviously has some deep impact on the way we have implemented the cursors...

> Add size() and hasNext() methods to cursors
> -------------------------------------------
>                 Key: DIRSERVER-1294
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>    Affects Versions: 1.5.4
>            Reporter: Emmanuel Lecharny
>            Assignee: Felix Knecht
>            Priority: Minor
>             Fix For: 2.0.0-RC1
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message