Class MergeState.DocMap

  • Enclosing class:
    MergeState

    public abstract static class MergeState.DocMap
    extends java.lang.Object
    Remaps docids around deletes during merge
    • Method Detail

      • get

        public abstract int get​(int docID)
        Returns the mapped docID corresponding to the provided one.
      • maxDoc

        public abstract int maxDoc()
        Returns the total number of documents, ignoring deletions.
      • numDocs

        public final int numDocs()
        Returns the number of not-deleted documents.
      • numDeletedDocs

        public abstract int numDeletedDocs()
        Returns the number of deleted documents.
      • hasDeletions

        public boolean hasDeletions()
        Returns true if there are any deletions.