FileDocCategorySizeDatePackage
DocMaker.javaAPI DocApache Lucene 2.2.02632Sat Jun 16 22:20:58 BST 2007org.apache.lucene.benchmark.byTask.feeds

DocMaker

public interface DocMaker
Create documents for the test.
Each call to makeDocument would create the next document. When input is exhausted, the DocMaker iterates over the input again, providing a source for unlimited number of documents, though not all of them are unique.

Fields Summary
Constructors Summary
Methods Summary
public longgetByteCount()
Return total byte size of docs made since last reset.

public intgetCount()
Return number of docs made since last reset.

public HTMLParsergetHtmlParser()
Returns the htmlParser.

public org.apache.lucene.document.DocumentmakeDocument(int size)
Create the next document, of the given size by input bytes. If the implementation does not support control over size, an exception is thrown.

param
size size of document, or 0 if there is no size requirement.
exception
if cannot make the document, or if size>0 was specified but this feature is not supported.

public org.apache.lucene.document.DocumentmakeDocument()
Create the next document.

public longnumUniqueBytes()
Return total bytes of all available unique texts, 0 if not applicable

public intnumUniqueTexts()
Return how many real unique texts are available, 0 if not applicable.

public voidprintDocStatistics()
Print some statistics on docs available/added/etc.

public voidresetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.

public voidsetConfig(org.apache.lucene.benchmark.byTask.utils.Config config)
Set the properties

public voidsetHTMLParser(HTMLParser htmlParser)
Set the html parser to use, when appropriate