Show / Hide Table of Contents

    Class MergeState.DocMap

    Remaps docids around deletes during merge

    Inheritance
    System.Object
    MergeState.DocMap
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class DocMap : object

    Properties

    | Improve this Doc View Source

    HasDeletions

    Returns true if there are any deletions.

    Declaration
    public virtual bool HasDeletions { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MaxDoc

    Returns the total number of documents, ignoring deletions.

    Declaration
    public abstract int MaxDoc { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    NumDeletedDocs

    Returns the number of deleted documents.

    Declaration
    public abstract int NumDeletedDocs { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    NumDocs

    Returns the number of not-deleted documents.

    Declaration
    public int NumDocs { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Build(AtomicReader)

    Creates a MergeState.DocMap instance appropriate for this reader.

    Declaration
    public static MergeState.DocMap Build(AtomicReader reader)
    Parameters
    Type Name Description
    AtomicReader reader
    Returns
    Type Description
    MergeState.DocMap
    | Improve this Doc View Source

    Get(Int32)

    Returns the mapped docID corresponding to the provided one.

    Declaration
    public abstract int Get(int docID)
    Parameters
    Type Name Description
    System.Int32 docID
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)