## Uses of Class
org.apache.lucene.search.DocIdSet

- Packages that use DocIdSet
  Package | Description
  --- | ---
  org.apache.lucene.search | Code to search indices.
  org.apache.lucene.util | Some utility classes.

- - ### Uses of DocIdSet in org.apache.lucene.search

    Fields in org.apache.lucene.search declared as DocIdSet
    Modifier and Type | Field and Description
    --- | ---
    `static DocIdSet` | DocIdSet.`EMPTY` An empty `DocIdSet` instance

    Methods in org.apache.lucene.search that return DocIdSet
    Modifier and Type | Method and Description
    --- | ---
    `protected DocIdSet` | LRUQueryCache.`cacheImpl(BulkScorer scorer, int maxDoc)` Default cache implementation: uses `RoaringDocIdSet` for sets that have a density < 1% and a `BitDocIdSet` over a `FixedBitSet` otherwise.

  - ### Uses of DocIdSet in org.apache.lucene.util

    Subclasses of DocIdSet in org.apache.lucene.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BitDocIdSet` Implementation of the `DocIdSet` interface on top of a `BitSet`.
    `class` | `NotDocIdSet` This `DocIdSet` encodes the negation of another `DocIdSet`.
    `class` | `RoaringDocIdSet` `DocIdSet` implementation inspired from http://roaringbitmap.org/ The space is divided into blocks of 2^16 bits and each block is encoded independently.

    Methods in org.apache.lucene.util that return DocIdSet
    Modifier and Type | Method and Description
    --- | ---
    `DocIdSet` | DocIdSetBuilder.`build()` Build a `DocIdSet` from the accumulated doc IDs.

    Constructors in org.apache.lucene.util with parameters of type DocIdSet
    Constructor and Description
    `NotDocIdSet(int maxDoc, DocIdSet in)` Sole constructor.

Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.