public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCase
LuceneTestCase.Nightly| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
addCount |
protected AtomicInteger |
delCount |
protected org.apache.lucene.store.Directory |
dir |
protected AtomicBoolean |
failed |
protected AtomicInteger |
packCount |
protected org.apache.lucene.index.IndexWriter |
writer |
classRules, random, RANDOM_MULTIPLIER, ruleChain, stores, TEMP_DIR, TEST_CLEAN_THREADS, TEST_DIRECTORY, TEST_ITER, TEST_ITER_MIN, TEST_LINE_DOCS_FILE, TEST_LOCALE, TEST_NIGHTLY, TEST_SEED, TEST_TIMEZONE, TEST_VERSION_CURRENT, testsFailed, VERBOSE| Constructor and Description |
|---|
ThreadedIndexingAndSearchingTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDocument(org.apache.lucene.index.Term id,
org.apache.lucene.document.Document doc) |
protected void |
addDocuments(org.apache.lucene.index.Term id,
Collection<org.apache.lucene.document.Document> docs) |
protected void |
deleteDocuments(org.apache.lucene.index.Term term) |
protected void |
doAfterIndexingThreadDone() |
protected void |
doAfterWriter(ExecutorService es) |
protected void |
doClose() |
protected abstract void |
doSearching(ExecutorService es,
long stopTime) |
protected abstract org.apache.lucene.search.IndexSearcher |
getCurrentSearcher() |
protected org.apache.lucene.store.Directory |
getDirectory(org.apache.lucene.store.Directory in) |
protected abstract org.apache.lucene.search.IndexSearcher |
getFinalSearcher() |
protected void |
releaseSearcher(org.apache.lucene.search.IndexSearcher s) |
protected void |
runSearchThreads(long stopTimeMS) |
void |
runTest(String testName) |
protected void |
smokeTestSearcher(org.apache.lucene.search.IndexSearcher s) |
protected void |
updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document doc) |
protected void |
updateDocuments(org.apache.lucene.index.Term id,
Collection<org.apache.lucene.document.Document> docs) |
afterClassLuceneTestCaseJ4, alwaysIgnoredTestMethod, assertEquals, assertEquals, assertEquals, assertEquals, assertSaneFieldCaches, asSet, assumeFalse, assumeNoException, assumeTrue, atLeast, atLeast, beforeClassLuceneTestCaseJ4, dumpArray, dumpIterator, getDataFile, getName, getTestClass, getTestLabel, isTestThread, localeForName, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newField, newField, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newSearcher, newSearcher, newTieredMergePolicy, newTieredMergePolicy, purgeFieldCache, randomDirectory, randomLocale, randomTimeZone, rarely, rarely, reportAdditionalFailureInfo, reportPartialFailureInfo, setMergeFactor, setUp, setUseCompoundFile, tearDown, usually, usuallyassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failprotected final AtomicBoolean failed
protected final AtomicInteger addCount
protected final AtomicInteger delCount
protected final AtomicInteger packCount
protected org.apache.lucene.store.Directory dir
protected org.apache.lucene.index.IndexWriter writer
public ThreadedIndexingAndSearchingTestCase()
protected abstract org.apache.lucene.search.IndexSearcher getCurrentSearcher()
throws Exception
Exceptionprotected abstract org.apache.lucene.search.IndexSearcher getFinalSearcher()
throws Exception
Exceptionprotected void releaseSearcher(org.apache.lucene.search.IndexSearcher s)
throws Exception
Exceptionprotected abstract void doSearching(ExecutorService es, long stopTime) throws Exception
Exceptionprotected org.apache.lucene.store.Directory getDirectory(org.apache.lucene.store.Directory in)
protected void updateDocuments(org.apache.lucene.index.Term id,
Collection<org.apache.lucene.document.Document> docs)
throws Exception
Exceptionprotected void addDocuments(org.apache.lucene.index.Term id,
Collection<org.apache.lucene.document.Document> docs)
throws Exception
Exceptionprotected void addDocument(org.apache.lucene.index.Term id,
org.apache.lucene.document.Document doc)
throws Exception
Exceptionprotected void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document doc)
throws Exception
Exceptionprotected void deleteDocuments(org.apache.lucene.index.Term term)
throws Exception
Exceptionprotected void doAfterIndexingThreadDone()
protected void runSearchThreads(long stopTimeMS)
throws Exception
Exceptionprotected void doAfterWriter(ExecutorService es) throws Exception
ExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.