Class MergeState.DocMap
Remaps docids around deletes during merge
Inheritance
System.Object
MergeState.DocMap
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class DocMap
Properties
| Improve this Doc View SourceHasDeletions
Returns true
if there are any deletions.
Declaration
public virtual bool HasDeletions { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxDoc
Returns the total number of documents, ignoring deletions.
Declaration
public abstract int MaxDoc { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumDeletedDocs
Returns the number of deleted documents.
Declaration
public abstract int NumDeletedDocs { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumDocs
Returns the number of not-deleted documents.
Declaration
public int NumDocs { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceBuild(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 |
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 |