C# Class Lucene.Net.Index.ConcurrentMergeScheduler

A {@link MergeScheduler} that runs each merge using a separate thread, up until a maximum number of threads ({@link #setMaxThreadCount}) at which points merges are run in the foreground, serially. This is a simple way to use concurrency in the indexing process without having to create and manage application level threads.
Inheritance: Lucene.Net.Index.MergeScheduler
Afficher le fichier Open project: synhershko/lucene.net Class Usage Examples

Protected Properties

Свойство Type Description
dir Lucene.Net.Store.Directory
mergeThreadCount int
mergeThreads IList
writer IndexWriter

Méthodes publiques

Méthode Description
AnyUnhandledExceptions ( ) : bool

Used for testing

ClearSuppressExceptions ( ) : void

Used for testing

ClearUnhandledExceptions ( ) : void
ConcurrentMergeScheduler ( ) : System.Collections.Generic
Merge ( IndexWriter writer ) : void
SetMergeThreadPriority ( int pri ) : void

Set the priority that merge threads run at.

SetSuppressExceptions ( ) : void

Used for testing

SetTestMode ( ) : void
Sync ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
DoMerge ( MergePolicy merge ) : void

Does the actual merge, by calling IndexWriter.Merge

GetMergeThread ( IndexWriter writer, MergePolicy merge ) : MergeThread

Create and return a new MergeThread

HandleMergeException ( System exc ) : void

Called when an exception is hit in a background merge thread

Private Methods

Méthode Description
AddMyself ( ) : void

Used for testing

GetMergeThreadPriority ( ) : int
InitMergeThreadPriority ( ) : void
MergeThreadCount ( ) : int
Message ( System message ) : void
Verbose ( ) : bool

Method Details

AnyUnhandledExceptions() public static méthode

Used for testing
public static AnyUnhandledExceptions ( ) : bool
Résultat bool

ClearSuppressExceptions() public méthode

Used for testing
public ClearSuppressExceptions ( ) : void
Résultat void

ClearUnhandledExceptions() public static méthode

public static ClearUnhandledExceptions ( ) : void
Résultat void

ConcurrentMergeScheduler() public méthode

public ConcurrentMergeScheduler ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoMerge() protected méthode

Does the actual merge, by calling IndexWriter.Merge
protected DoMerge ( MergePolicy merge ) : void
merge MergePolicy
Résultat void

GetMergeThread() protected méthode

Create and return a new MergeThread
protected GetMergeThread ( IndexWriter writer, MergePolicy merge ) : MergeThread
writer IndexWriter
merge MergePolicy
Résultat MergeThread

HandleMergeException() protected méthode

Called when an exception is hit in a background merge thread
protected HandleMergeException ( System exc ) : void
exc System
Résultat void

Merge() public méthode

public Merge ( IndexWriter writer ) : void
writer IndexWriter
Résultat void

SetMergeThreadPriority() public méthode

Set the priority that merge threads run at.
public SetMergeThreadPriority ( int pri ) : void
pri int
Résultat void

SetSuppressExceptions() public méthode

Used for testing
public SetSuppressExceptions ( ) : void
Résultat void

SetTestMode() public static méthode

public static SetTestMode ( ) : void
Résultat void

Sync() public méthode

public Sync ( ) : void
Résultat void

Property Details

dir protected_oe property

protected Lucene.Net.Store.Directory dir
Résultat Lucene.Net.Store.Directory

mergeThreadCount protected_oe property

protected int mergeThreadCount
Résultat int

mergeThreads protected_oe property

protected IList mergeThreads
Résultat IList

writer protected_oe property

protected IndexWriter,Lucene.Net.Index writer
Résultat IndexWriter