mirror of https://github.com/apache/lucene.git
LUCENE-6116: Simplify RoaringDocIdSet.Iterator constructor.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7a5cfc413
commit
56b3f8b1fc
|
@ -268,11 +268,8 @@ public class RoaringDocIdSet extends DocIdSet {
|
|||
|
||||
Iterator() throws IOException {
|
||||
doc = -1;
|
||||
block = 0;
|
||||
while (docIdSets[block] == null) {
|
||||
block += 1;
|
||||
}
|
||||
sub = docIdSets[block].iterator();
|
||||
block = -1;
|
||||
sub = DocIdSetIterator.empty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue