java.lang.Object
org.elasticsearch.lucene.util.BitSets

public final class BitSets extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.util.BitSet
    of(org.apache.lucene.search.DocIdSetIterator iter, int maxDocs)
    Build a BitSet from the content of the provided DocIdSetIterator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static org.apache.lucene.util.BitSet of(org.apache.lucene.search.DocIdSetIterator iter, int maxDocs) throws IOException
      Build a BitSet from the content of the provided DocIdSetIterator. If the iterator matches all documents, then this method will wrap the returned Bitset as MatchAllBitSet to reduce memory usage.
      Throws:
      IOException