Remove `DocIdSets.isFastIterator(DocIdSetIterator iterator)`.

This method was unused and its implementation wasn't correct since FixedBitSet
has its own iterator since Lucene 4.7.
This commit is contained in:
Adrien Grand 2014-05-21 11:25:35 +02:00
parent 814451f499
commit fa3bd738ab
1 changed files with 0 additions and 10 deletions

View File

@ -24,7 +24,6 @@ import org.apache.lucene.search.DocIdSet;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.util.Bits;
import org.apache.lucene.util.FixedBitSet;
import org.apache.lucene.util.OpenBitSetIterator;
import org.elasticsearch.common.Nullable;
import java.io.IOException;
@ -56,15 +55,6 @@ public class DocIdSets {
return set instanceof FixedBitSet;
}
/**
* Is {@link org.apache.lucene.search.DocIdSetIterator} implemented in a "fast" manner.
* For example, it does not ends up iterating one doc at a time check for its "value".
*/
public static boolean isFastIterator(DocIdSetIterator iterator) {
// this is the iterator in the FixedBitSet.
return iterator instanceof OpenBitSetIterator;
}
/**
* Converts to a cacheable {@link DocIdSet}
* <p/>