| org.apache.lucene.benchmark.byTask.feeds.DocMaker
All known Subclasses: org.apache.lucene.benchmark.byTask.feeds.BasicDocMaker,
DocMaker | public interface DocMaker (Code) | | 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.
|
Method Summary | |
public long | getByteCount() Return total byte size of docs made since last reset. | public int | getCount() Return number of docs made since last reset. | public HTMLParser | getHtmlParser() Returns the htmlParser. | public Document | makeDocument(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.
Parameters: size - size of document, or 0 if there is no size requirement. | public Document | makeDocument() Create the next document. | public long | numUniqueBytes() | public int | numUniqueTexts() Return how many real unique texts are available, 0 if not applicable. | public void | printDocStatistics() Print some statistics on docs available/added/etc. | public void | resetInputs() Reset inputs so that the test run would behave, input wise, as if it just started. | public void | setConfig(Config config) | public void | setHTMLParser(HTMLParser htmlParser) |
getByteCount | public long getByteCount()(Code) | | Return total byte size of docs made since last reset.
|
getCount | public int getCount()(Code) | | Return number of docs made since last reset.
|
makeDocument | public Document makeDocument(int size) throws Exception(Code) | | Create the next document, of the given size by input bytes.
If the implementation does not support control over size, an exception is thrown.
Parameters: size - size of document, or 0 if there is no size requirement. if cannot make the document, or if size>0 was specified but this feature is not supported. |
numUniqueBytes | public long numUniqueBytes()(Code) | | Return total bytes of all available unique texts, 0 if not applicable
|
numUniqueTexts | public int numUniqueTexts()(Code) | | Return how many real unique texts are available, 0 if not applicable.
|
printDocStatistics | public void printDocStatistics()(Code) | | Print some statistics on docs available/added/etc.
|
resetInputs | public void resetInputs()(Code) | | Reset inputs so that the test run would behave, input wise, as if it just started.
|
setConfig | public void setConfig(Config config)(Code) | | Set the properties
|
setHTMLParser | public void setHTMLParser(HTMLParser htmlParser)(Code) | | Set the html parser to use, when appropriate
|
|
|