Class ThreadedIndexingAndSearchingTestCase
Utility class that spawns multiple indexing and searching threads.
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class ThreadedIndexingAndSearchingTestCase : LuceneTestCase
Fields
m_addCount
Utility class that spawns multiple indexing and searching threads.
Declaration
protected readonly AtomicInt32 m_addCount
Field Value
Type | Description |
---|---|
AtomicInt32 |
m_assertMergedSegmentsWarmed
Utility class that spawns multiple indexing and searching threads.
Declaration
protected bool m_assertMergedSegmentsWarmed
Field Value
Type | Description |
---|---|
bool |
m_delCount
Utility class that spawns multiple indexing and searching threads.
Declaration
protected readonly AtomicInt32 m_delCount
Field Value
Type | Description |
---|---|
AtomicInt32 |
m_dir
Utility class that spawns multiple indexing and searching threads.
Declaration
protected Directory m_dir
Field Value
Type | Description |
---|---|
Directory |
m_failed
Utility class that spawns multiple indexing and searching threads.
Declaration
protected readonly AtomicBoolean m_failed
Field Value
Type | Description |
---|---|
AtomicBoolean |
m_packCount
Utility class that spawns multiple indexing and searching threads.
Declaration
protected readonly AtomicInt32 m_packCount
Field Value
Type | Description |
---|---|
AtomicInt32 |
m_writer
Utility class that spawns multiple indexing and searching threads.
Declaration
protected IndexWriter m_writer
Field Value
Type | Description |
---|---|
IndexWriter |
Methods
AddDocument(Term, IEnumerable<IIndexableField>)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void AddDocument(Term id, IEnumerable<IIndexableField> doc)
Parameters
Type | Name | Description |
---|---|---|
Term | id | |
IEnumerable<IIndexableField> | doc |
AddDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void AddDocuments(Term id, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type | Name | Description |
---|---|---|
Term | id | |
IEnumerable<IEnumerable<IIndexableField>> | docs |
DeleteDocuments(Term)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void DeleteDocuments(Term term)
Parameters
Type | Name | Description |
---|---|---|
Term | term |
DoAfterIndexingThreadDone()
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void DoAfterIndexingThreadDone()
DoAfterWriter(TaskScheduler)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void DoAfterWriter(TaskScheduler es)
Parameters
Type | Name | Description |
---|---|---|
TaskScheduler | es |
DoClose()
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void DoClose()
DoSearching(TaskScheduler, long)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected abstract void DoSearching(TaskScheduler es, long stopTime)
Parameters
Type | Name | Description |
---|---|---|
TaskScheduler | es | |
long | stopTime |
GetCurrentSearcher()
Utility class that spawns multiple indexing and searching threads.
Declaration
protected abstract IndexSearcher GetCurrentSearcher()
Returns
Type | Description |
---|---|
IndexSearcher |
GetDirectory(Directory)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual Directory GetDirectory(Directory @in)
Parameters
Type | Name | Description |
---|---|---|
Directory | in |
Returns
Type | Description |
---|---|
Directory |
GetFinalSearcher()
Utility class that spawns multiple indexing and searching threads.
Declaration
protected abstract IndexSearcher GetFinalSearcher()
Returns
Type | Description |
---|---|
IndexSearcher |
ReleaseSearcher(IndexSearcher)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void ReleaseSearcher(IndexSearcher s)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | s |
RunSearchThreads(long)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void RunSearchThreads(long stopTime)
Parameters
Type | Name | Description |
---|---|---|
long | stopTime |
RunTest(string)
Utility class that spawns multiple indexing and searching threads.
Declaration
public virtual void RunTest(string testName)
Parameters
Type | Name | Description |
---|---|---|
string | testName |
SmokeTestSearcher(IndexSearcher)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void SmokeTestSearcher(IndexSearcher s)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | s |
UpdateDocument(Term, IEnumerable<IIndexableField>)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void UpdateDocument(Term term, IEnumerable<IIndexableField> doc)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
IEnumerable<IIndexableField> | doc |
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Utility class that spawns multiple indexing and searching threads.
Declaration
protected virtual void UpdateDocuments(Term id, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type | Name | Description |
---|---|---|
Term | id | |
IEnumerable<IEnumerable<IIndexableField>> | docs |