C# Class Lucene.Net.Index.ThreadedIndexingAndSearchingTestCase

Utility class that spawns multiple indexing and searching threads.
Inheritance: LuceneTestCase
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Protected Properties

Property Type Description
AddCount Lucene.Net.Support.AtomicInteger
AssertMergedSegmentsWarmed bool
DelCount Lucene.Net.Support.AtomicInteger
Dir System.IO.Directory
Failed AtomicBoolean
PackCount Lucene.Net.Support.AtomicInteger
Writer IndexWriter

Public Methods

Method Description
RunTest ( string testName ) : void

Protected Methods

Method Description
AddDocument ( Lucene.Net.Index.Term id, IEnumerable doc ) : void
AddDocuments ( Lucene.Net.Index.Term id, IEnumerable docs ) : void
DeleteDocuments ( Lucene.Net.Index.Term term ) : void
DoAfterIndexingThreadDone ( ) : void
DoAfterWriter ( TaskScheduler es ) : void
DoClose ( ) : void
DoSearching ( TaskScheduler es, System.DateTime stopTime ) : void
GetDirectory ( Directory @in ) : Directory
ReleaseSearcher ( IndexSearcher s ) : void
RunSearchThreads ( System.DateTime stopTime ) : void
SmokeTestSearcher ( IndexSearcher s ) : void
UpdateDocument ( Lucene.Net.Index.Term term, IEnumerable doc ) : void
UpdateDocuments ( Lucene.Net.Index.Term id, IEnumerable docs ) : void

Private Methods

Method Description
LaunchIndexingThreads ( LineFileDocs docs, int numThreads, System.DateTime stopTime, ISet delIDs, ISet delPackIDs, IList allSubDocs ) : Lucene.Net.Support.ThreadClass[]
RunQuery ( IndexSearcher s, Query q ) : int

Method Details

AddDocument() protected method

protected AddDocument ( Lucene.Net.Index.Term id, IEnumerable doc ) : void
id Lucene.Net.Index.Term
doc IEnumerable
return void

AddDocuments() protected method

protected AddDocuments ( Lucene.Net.Index.Term id, IEnumerable docs ) : void
id Lucene.Net.Index.Term
docs IEnumerable
return void

DeleteDocuments() protected method

protected DeleteDocuments ( Lucene.Net.Index.Term term ) : void
term Lucene.Net.Index.Term
return void

DoAfterIndexingThreadDone() protected method

protected DoAfterIndexingThreadDone ( ) : void
return void

DoAfterWriter() protected method

protected DoAfterWriter ( TaskScheduler es ) : void
es System.Threading.Tasks.TaskScheduler
return void

DoClose() protected method

protected DoClose ( ) : void
return void

DoSearching() protected abstract method

protected abstract DoSearching ( TaskScheduler es, System.DateTime stopTime ) : void
es System.Threading.Tasks.TaskScheduler
stopTime System.DateTime
return void

GetDirectory() protected method

protected GetDirectory ( Directory @in ) : Directory
@in System.IO.Directory
return System.IO.Directory

ReleaseSearcher() protected method

protected ReleaseSearcher ( IndexSearcher s ) : void
s IndexSearcher
return void

RunSearchThreads() protected method

protected RunSearchThreads ( System.DateTime stopTime ) : void
stopTime System.DateTime
return void

RunTest() public method

public RunTest ( string testName ) : void
testName string
return void

SmokeTestSearcher() protected method

protected SmokeTestSearcher ( IndexSearcher s ) : void
s IndexSearcher
return void

UpdateDocument() protected method

protected UpdateDocument ( Lucene.Net.Index.Term term, IEnumerable doc ) : void
term Lucene.Net.Index.Term
doc IEnumerable
return void

UpdateDocuments() protected method

protected UpdateDocuments ( Lucene.Net.Index.Term id, IEnumerable docs ) : void
id Lucene.Net.Index.Term
docs IEnumerable
return void

Property Details

AddCount protected_oe property

protected AtomicInteger,Lucene.Net.Support AddCount
return Lucene.Net.Support.AtomicInteger

AssertMergedSegmentsWarmed protected_oe property

protected bool AssertMergedSegmentsWarmed
return bool

DelCount protected_oe property

protected AtomicInteger,Lucene.Net.Support DelCount
return Lucene.Net.Support.AtomicInteger

Dir protected_oe property

protected Directory,System.IO Dir
return System.IO.Directory

Failed protected_oe property

protected AtomicBoolean Failed
return AtomicBoolean

PackCount protected_oe property

protected AtomicInteger,Lucene.Net.Support PackCount
return Lucene.Net.Support.AtomicInteger

Writer protected_oe property

protected IndexWriter,Lucene.Net.Index Writer
return IndexWriter