|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.test.regression.DeletionTest
public class DeletionTest
Regression test to check that files are deleted from the index.
| Field Summary | |
|---|---|
protected static java.lang.String |
charEnc
The character encoding |
protected java.lang.String |
cmFile
The filename of the configuration file if provided on the command line args |
protected java.io.File |
documentDirectory
The directory containing the documents to be indexed |
protected SearchEngineImpl |
engine
A search engine |
protected java.lang.String |
indexDir
The directory to contain the index |
protected java.io.File |
outputDirectory
The directory into which the de-indexed files should be written |
| Constructor Summary | |
|---|---|
DeletionTest()
Default contructor. |
|
DeletionTest(java.lang.String indexDir,
int iterations,
java.lang.String cmFile,
java.lang.String dDir,
java.lang.String oDir)
Create a new instance of the test class |
|
| Method Summary | |
|---|---|
protected void |
createSearchEngine(java.lang.String cmFile,
java.lang.String indexDir)
Creates a new instance of a search engines and assigns it to the field |
protected void |
invert()
Takes the index and reproduces the documents that produced it. The documents are reproduced into the output directory, with any files already there being deleted. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String charEnc
protected java.io.File outputDirectory
protected java.lang.String indexDir
protected SearchEngineImpl engine
protected java.io.File documentDirectory
protected java.lang.String cmFile
| Constructor Detail |
|---|
public DeletionTest()
public DeletionTest(java.lang.String indexDir,
int iterations,
java.lang.String cmFile,
java.lang.String dDir,
java.lang.String oDir)
throws java.io.FileNotFoundException
indexDir - the location of the index directoryiterations - the number of random files to be deletedcmFile - the file name for the configuration filedDir - the name of the document directoryoDir - the name of the output directory
java.io.FileNotFoundException| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws SearchEngineException
args -
SearchEngineException
protected void invert()
throws java.io.IOException
java.io.IOException
protected void createSearchEngine(java.lang.String cmFile,
java.lang.String indexDir)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||