Class ConcurrentMergeScheduler.MergeThread
Runs a merge thread, which may run one or more merges in sequence.
Inheritance
System.Object
ConcurrentMergeScheduler.MergeThread
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
protected class MergeThread : ThreadJob
Constructors
| Improve this Doc View SourceMergeThread(ConcurrentMergeScheduler, IndexWriter, MergePolicy.OneMerge)
Sole constructor.
Declaration
public MergeThread(ConcurrentMergeScheduler outerInstance, IndexWriter writer, MergePolicy.OneMerge startMerge)
Parameters
Type | Name | Description |
---|---|---|
ConcurrentMergeScheduler | outerInstance | |
IndexWriter | writer | |
MergePolicy.OneMerge | startMerge |
Properties
| Improve this Doc View SourceCurrentMerge
Return the current merge, or null
if this
ConcurrentMergeScheduler.MergeThread is done.
Declaration
public virtual MergePolicy.OneMerge CurrentMerge { get; }
Property Value
Type | Description |
---|---|
MergePolicy.OneMerge |
RunningMerge
Record the currently running merge.
Declaration
public virtual MergePolicy.OneMerge RunningMerge { get; set; }
Property Value
Type | Description |
---|---|
MergePolicy.OneMerge |
Methods
| Improve this Doc View SourceRun()
Declaration
public override void Run()
SetThreadPriority(ThreadPriority)
Set the priority of this thread.
Declaration
public virtual void SetThreadPriority(ThreadPriority priority)
Parameters
Type | Name | Description |
---|---|---|
ThreadPriority | priority |