marburgedu / xxl

Automatically exported from code.google.com/p/xxl
16 stars 8 forks source link

Index-only Range Query #11

Closed parth1988 closed 9 years ago

parth1988 commented 9 years ago

Hi,

First of all, thank you very much for the library. I have been able to use it for very large datasets. I do have one question. I am trying to do an index-only range query. In the current implementation, Cursors.count counts the results of the range query, but the next() method that it calls also gets the data from the disk, which is very slow. If I pass the targetLevel as 1 instead of 0, it counts the cursors, but returns lot more results since it is one level up. Is there a way to count only the cursors at level 0 without actually accessing the leaf node data? Thank you for your time!