Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skippable iterators #55

Open
lemire opened this issue Mar 19, 2016 · 4 comments
Open

Add skippable iterators #55

lemire opened this issue Mar 19, 2016 · 4 comments

Comments

@lemire
Copy link
Member

lemire commented Mar 19, 2016

Java's iterators can skip over values :

https://github.com/RoaringBitmap/RoaringBitmap/blob/master/roaringbitmap/src/main/java/org/roaringbitmap/PeekableIntIterator.java

@steveyen
Copy link
Contributor

Looks like that link to the java iterator example is broken? Newer link: https://github.com/RoaringBitmap/RoaringBitmap/blob/master/roaringbitmap/src/main/java/org/roaringbitmap/PeekableIntIterator.java

@lemire
Copy link
Member Author

lemire commented Jan 23, 2019

Updated link.

@steveyen
Copy link
Contributor

As an application usage example, the bleve full-text library would likely have use for a skip-ahead or advance-able iterator method. It currently has that brute force for-loop that calls HasNext/Next(), not really doing anything meaningful with the interim values...

https://github.com/blevesearch/bleve/blob/master/index/scorch/segment/zap/posting.go#L659

@lemire
Copy link
Member Author

lemire commented Jan 23, 2019

I have marked this as a priority.

It is not difficult to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants