org.apache.lucene.benchmark.byTask.feeds
public class LineDocMaker extends BasicDocMaker
BODY_FIELD, BYTES_FIELD, config, DATE_FIELD, forever, ID_FIELD, indexVal, NAME_FIELD, storeVal, termVecVal, TITLE_FIELD
Constructor and Description |
---|
LineDocMaker() |
Modifier and Type | Method and Description |
---|---|
protected DocData |
getNextDocData()
Return the data of the next document.
|
Document |
makeDocument()
Create the next document.
|
Document |
makeDocument(int size)
Create the next document, of the given size by input bytes.
|
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.
|
addBytes, addUniqueBytes, collectFiles, getByteCount, getCount, getHtmlParser, numUniqueBytes, printDocStatistics, setConfig, setHTMLParser
protected DocData getNextDocData() throws Exception
BasicDocMaker
getNextDocData
in class BasicDocMaker
NoMoreDataException
- if data is exhausted (and 'forever' set to false).Exception
public Document makeDocument() throws Exception
DocMaker
makeDocument
in interface DocMaker
makeDocument
in class BasicDocMaker
Exception
public Document makeDocument(int size) throws Exception
DocMaker
makeDocument
in interface DocMaker
makeDocument
in class BasicDocMaker
size
- size of document, or 0 if there is no size requirement.Exception
public void resetInputs()
DocMaker
resetInputs
in interface DocMaker
resetInputs
in class BasicDocMaker
public int numUniqueTexts()
DocMaker
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.