lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2648) Allow PackedInts.ReaderIterator to advance more than one value
Date Fri, 17 Sep 2010 15:20:37 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910626#action_12910626
] 

Michael McCandless commented on LUCENE-2648:
--------------------------------------------

Looks good Simon!

Maybe instead of {code}public int docID(){code} we should name it {code}public int ord(){code}?
 Ie, the index is not always a docID (eg when the fixed-gap terms index uses packed ints,
it's the term ord).

> Allow PackedInts.ReaderIterator to advance more than one value
> --------------------------------------------------------------
>
>                 Key: LUCENE-2648
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2648
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Minor
>         Attachments: LUCENE-2648.patch
>
>
> The iterator-like API in LUCENE-2186 makes effective use of PackedInts.ReaderIterator
but frequently skips multiple values. ReaderIterator currently requires to loop over ReaderInterator#next()
to advance to a certain value. We should allow ReaderIterator to expose a #advance(ord) method
to make use-cases like that more efficient. 
> This issue is somewhat part of my efforts to make LUCENE-2186 smaller while breaking
it up in little issues for parts which can be generally useful.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message