Class ThreadedIndexingAndSearchingTestCase
Utility class that spawns multiple indexing and
searching threads.
Inheritance
System.Object
ThreadedIndexingAndSearchingTestCase
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()
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class ThreadedIndexingAndSearchingTestCase : LuceneTestCase
Fields
|
Improve this Doc
View Source
m_addCount
Declaration
protected readonly AtomicInt32 m_addCount
Field Value
Type |
Description |
J2N.Threading.Atomic.AtomicInt32 |
|
|
Improve this Doc
View Source
m_assertMergedSegmentsWarmed
Declaration
protected bool m_assertMergedSegmentsWarmed
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
m_delCount
Declaration
protected readonly AtomicInt32 m_delCount
Field Value
Type |
Description |
J2N.Threading.Atomic.AtomicInt32 |
|
|
Improve this Doc
View Source
m_dir
Declaration
protected Directory m_dir
Field Value
Type |
Description |
Lucene.Net.Store.Directory |
|
|
Improve this Doc
View Source
m_failed
Declaration
protected readonly AtomicBoolean m_failed
Field Value
Type |
Description |
J2N.Threading.Atomic.AtomicBoolean |
|
|
Improve this Doc
View Source
m_packCount
Declaration
protected readonly AtomicInt32 m_packCount
Field Value
Type |
Description |
J2N.Threading.Atomic.AtomicInt32 |
|
|
Improve this Doc
View Source
m_writer
Declaration
protected IndexWriter m_writer
Field Value
Type |
Description |
Lucene.Net.Index.IndexWriter |
|
Methods
|
Improve this Doc
View Source
AddDocument(Term, IEnumerable<IIndexableField>)
Declaration
protected virtual void AddDocument(Term id, IEnumerable<IIndexableField> doc)
Parameters
Type |
Name |
Description |
Lucene.Net.Index.Term |
id |
|
System.Collections.Generic.IEnumerable<Lucene.Net.Index.IIndexableField> |
doc |
|
|
Improve this Doc
View Source
AddDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Declaration
protected virtual void AddDocuments(Term id, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type |
Name |
Description |
Lucene.Net.Index.Term |
id |
|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<Lucene.Net.Index.IIndexableField>> |
docs |
|
|
Improve this Doc
View Source
DeleteDocuments(Term)
Declaration
protected virtual void DeleteDocuments(Term term)
Parameters
Type |
Name |
Description |
Lucene.Net.Index.Term |
term |
|
|
Improve this Doc
View Source
DoAfterIndexingThreadDone()
Declaration
protected virtual void DoAfterIndexingThreadDone()
|
Improve this Doc
View Source
DoAfterWriter(TaskScheduler)
Declaration
protected virtual void DoAfterWriter(TaskScheduler es)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.TaskScheduler |
es |
|
|
Improve this Doc
View Source
DoClose()
Declaration
protected virtual void DoClose()
|
Improve this Doc
View Source
DoSearching(TaskScheduler, Int64)
Declaration
protected abstract void DoSearching(TaskScheduler es, long stopTime)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.TaskScheduler |
es |
|
System.Int64 |
stopTime |
|
|
Improve this Doc
View Source
GetCurrentSearcher()
Declaration
protected abstract IndexSearcher GetCurrentSearcher()
Returns
Type |
Description |
Lucene.Net.Search.IndexSearcher |
|
|
Improve this Doc
View Source
GetDirectory(Directory)
Declaration
protected virtual Directory GetDirectory(Directory in)
Parameters
Type |
Name |
Description |
Lucene.Net.Store.Directory |
in |
|
Returns
Type |
Description |
Lucene.Net.Store.Directory |
|
|
Improve this Doc
View Source
GetFinalSearcher()
Declaration
protected abstract IndexSearcher GetFinalSearcher()
Returns
Type |
Description |
Lucene.Net.Search.IndexSearcher |
|
|
Improve this Doc
View Source
ReleaseSearcher(IndexSearcher)
Declaration
protected virtual void ReleaseSearcher(IndexSearcher s)
Parameters
Type |
Name |
Description |
Lucene.Net.Search.IndexSearcher |
s |
|
|
Improve this Doc
View Source
RunSearchThreads(Int64)
Declaration
protected virtual void RunSearchThreads(long stopTime)
Parameters
Type |
Name |
Description |
System.Int64 |
stopTime |
|
|
Improve this Doc
View Source
RunTest(String)
Declaration
public virtual void RunTest(string testName)
Parameters
Type |
Name |
Description |
System.String |
testName |
|
|
Improve this Doc
View Source
SmokeTestSearcher(IndexSearcher)
Declaration
protected virtual void SmokeTestSearcher(IndexSearcher s)
Parameters
Type |
Name |
Description |
Lucene.Net.Search.IndexSearcher |
s |
|
|
Improve this Doc
View Source
UpdateDocument(Term, IEnumerable<IIndexableField>)
Declaration
protected virtual void UpdateDocument(Term term, IEnumerable<IIndexableField> doc)
Parameters
Type |
Name |
Description |
Lucene.Net.Index.Term |
term |
|
System.Collections.Generic.IEnumerable<Lucene.Net.Index.IIndexableField> |
doc |
|
|
Improve this Doc
View Source
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Declaration
protected virtual void UpdateDocuments(Term id, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type |
Name |
Description |
Lucene.Net.Index.Term |
id |
|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<Lucene.Net.Index.IIndexableField>> |
docs |
|