mirror of https://github.com/apache/druid.git
add fix for II
This commit is contained in:
parent
1f62257ac2
commit
2db73998b9
|
@ -241,19 +241,17 @@ public class IncrementalIndexStorageAdapter implements StorageAdapter
|
||||||
|
|
||||||
if (numAdvanced == -1) {
|
if (numAdvanced == -1) {
|
||||||
numAdvanced = 0;
|
numAdvanced = 0;
|
||||||
while (baseIter.hasNext()) {
|
|
||||||
currEntry.set(baseIter.next());
|
|
||||||
if (filterMatcher.matches()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
numAdvanced++;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Iterators.advance(baseIter, numAdvanced);
|
Iterators.advance(baseIter, numAdvanced);
|
||||||
if (baseIter.hasNext()) {
|
}
|
||||||
currEntry.set(baseIter.next());
|
|
||||||
|
while (baseIter.hasNext()) {
|
||||||
|
currEntry.set(baseIter.next());
|
||||||
|
if (filterMatcher.matches()) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numAdvanced++;
|
||||||
}
|
}
|
||||||
|
|
||||||
done = cursorMap.size() == 0 || !baseIter.hasNext();
|
done = cursorMap.size() == 0 || !baseIter.hasNext();
|
||||||
|
|
Loading…
Reference in New Issue