Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MergeScheduler

    Expert: IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePolicy. The default MergeScheduler is ConcurrentMergeScheduler.

    Implementers of sub-classes should make sure that Clone() returns an independent instance able to work with any IndexWriter instance.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    MergeScheduler
    ConcurrentMergeScheduler
    NoMergeScheduler
    SerialMergeScheduler
    Implements
    IMergeScheduler
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class MergeScheduler : IMergeScheduler, IDisposable

    Constructors

    MergeScheduler()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    protected MergeScheduler()

    Methods

    Clone()

    Expert: IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePolicy. The default MergeScheduler is ConcurrentMergeScheduler.

    Implementers of sub-classes should make sure that Clone() returns an independent instance able to work with any IndexWriter instance.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    object

    Dispose()

    Dispose this MergeScheduler.

    Declaration
    public void Dispose()

    Dispose(bool)

    Dispose this MergeScheduler.

    Declaration
    protected abstract void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Merge(IndexWriter, MergeTrigger, bool)

    Run the merges provided by GetNextMerge().

    Declaration
    public abstract void Merge(IndexWriter writer, MergeTrigger trigger, bool newMergesFound)
    Parameters
    Type Name Description
    IndexWriter writer

    the IndexWriter to obtain the merges from.

    MergeTrigger trigger

    the MergeTrigger that caused this merge to happen

    bool newMergesFound

    true iff any new merges were found by the caller; otherwise false

    Implements

    IMergeScheduler
    IDisposable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.