org.apache.lucene.benchmark.byTask.feeds
public abstract class BasicDocMaker extends Object implements DocMaker
Field Summary | |
---|---|
protected Config | config |
protected boolean | forever |
protected Field.Index | indexVal |
protected Field.Store | storeVal |
protected Field.TermVector | termVecVal |
Method Summary | |
---|---|
protected void | addBytes(long n) |
protected void | addUniqueBytes(long n) |
protected void | collectFiles(File f, ArrayList inputFiles) |
long | getByteCount() |
int | getCount() |
HTMLParser | getHtmlParser() |
protected abstract DocData | getNextDocData()
Return the data of the next document.
|
Document | makeDocument() |
Document | makeDocument(int size) |
long | numUniqueBytes() |
void | printDocStatistics() |
void | resetInputs() |
void | setConfig(Config config) |
void | setHTMLParser(HTMLParser htmlParser) |
Returns: data of the next document.
Throws: if cannot create the next doc data NoMoreDataException if data is exhausted (and 'forever' set to false).