You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Felix Knecht (JIRA)" <ji...@apache.org> on 2010/10/31 00:41:19 UTC
[jira] Updated: (DIRSERVER-1294) Add size() and hasNext() methods
to cursors
[ https://issues.apache.org/jira/browse/DIRSERVER-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Knecht updated DIRSERVER-1294:
------------------------------------
Attachment: size_has.patch
Just what I already have so far. I don't want to keep it trailing around somewhere I may not rememeber the place ...
(Code doesn't covers all Cursor implementations, there'll exist compile errors after applying the patch which needs your attention and implementation)
> Add size() and hasNext() methods to cursors
> -------------------------------------------
>
> Key: DIRSERVER-1294
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1294
> 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
>
> Attachments: size_has.patch
>
>
> 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.