public class DirDocMaker extends BasicDocMaker
| Modifier and Type | Class and Description |
|---|---|
static class |
DirDocMaker.Iterator |
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
dataDir |
protected java.lang.ThreadLocal |
dateFormat |
protected DirDocMaker.Iterator |
inputFiles |
protected int |
iteration |
BODY_FIELD, BYTES_FIELD, config, DATE_FIELD, forever, ID_FIELD, indexVal, NAME_FIELD, storeVal, termVecVal, TITLE_FIELD| Constructor and Description |
|---|
DirDocMaker() |
| Modifier and Type | Method and Description |
|---|---|
protected java.text.DateFormat |
getDateFormat() |
protected DocData |
getNextDocData()
Return the data of the next document.
|
int |
numUniqueTexts()
Return how many real unique texts are available, 0 if not applicable.
|
void |
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
|
void |
setConfig(Config config)
Set the properties
|
addBytes, addUniqueBytes, collectFiles, getByteCount, getCount, getHtmlParser, makeDocument, makeDocument, numUniqueBytes, printDocStatistics, resetUniqueBytes, setHTMLParserprotected java.lang.ThreadLocal dateFormat
protected java.io.File dataDir
protected int iteration
protected DirDocMaker.Iterator inputFiles
public void setConfig(Config config)
DocMakersetConfig in interface DocMakersetConfig in class BasicDocMakerprotected java.text.DateFormat getDateFormat()
protected DocData getNextDocData() throws java.lang.Exception
BasicDocMakergetNextDocData in class BasicDocMakerNoMoreDataException - if data is exhausted (and 'forever' set to false).java.lang.Exceptionpublic void resetInputs()
DocMakerresetInputs in interface DocMakerresetInputs in class BasicDocMakerpublic int numUniqueTexts()
DocMakerCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.