## Uses of Interface
org.apache.lucene.index.MergeState.DocMap

- Packages that use MergeState.DocMap
  Package | Description
  --- | ---
  org.apache.lucene.index | Code to maintain and access indices.
  org.apache.lucene.util.bkd | Block KD-tree, implementing the generic spatial data structure described in this paper.
  org.apache.lucene.util.hnsw | Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.

- - ### Uses of MergeState.DocMap in org.apache.lucene.index

    Fields in org.apache.lucene.index declared as MergeState.DocMap
    Modifier and Type | Field | Description
    --- | --- | ---
    `MergeState.DocMap` | DocIDMerger.Sub.`docMap` | Map from old to new doc IDs
    `MergeState.DocMap[]` | MergeState.`docMaps` | Maps document IDs from old segments to document IDs in the new segment

    Constructors in org.apache.lucene.index with parameters of type MergeState.DocMap
    Constructor | Description
    --- | ---
    `Sub​(MergeState.DocMap docMap)` | Sole constructor

  - ### Uses of MergeState.DocMap in org.apache.lucene.util.bkd

    Method parameters in org.apache.lucene.util.bkd with type arguments of type MergeState.DocMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `Runnable` | BKDWriter.`merge​(IndexOutput metaOut, IndexOutput indexOut, IndexOutput dataOut, List<MergeState.DocMap> docMaps, List<PointValues> readers)` | More efficient bulk-add for incoming `PointValues`s.

  - ### Uses of MergeState.DocMap in org.apache.lucene.util.hnsw

    Fields in org.apache.lucene.util.hnsw declared as MergeState.DocMap
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected MergeState.DocMap` | IncrementalHnswGraphMerger.`initDocMap` |

    Methods in org.apache.lucene.util.hnsw with parameters of type MergeState.DocMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `HnswGraphMerger` | HnswGraphMerger.`addReader​(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs)` | Adds a reader to the graph merger to record the state
    `IncrementalHnswGraphMerger` | IncrementalHnswGraphMerger.`addReader​(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs)` | Adds a reader to the graph merger if it meets the following criteria: 1.