org.apache.lucene.benchmark.byTask.feeds

Class ReutersDocMaker

Implemented Interfaces:
DocMaker

public class ReutersDocMaker
extends BasicDocMaker

A DocMaker using the Reuters collection for its input.

Field Summary

Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.BasicDocMaker

config, indexVal, storeVal, termVecVal

Method Summary

protected org.apache.lucene.benchmark.byTask.feeds.BasicDocMaker.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

Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.BasicDocMaker

addBytes, addUniqueBytes, collectFiles, getByteCount, getCount, getNextDocData, makeDocument, makeDocument, numUniqueBytes, printDocStatistics, resetInputs, setConfig

Method Details

getNextDocData

protected org.apache.lucene.benchmark.byTask.feeds.BasicDocMaker.DocData getNextDocData()
            throws Exception
Return the data of the next document.
Overrides:
getNextDocData in interface BasicDocMaker
Returns:
data of the next document.

numUniqueTexts

public int numUniqueTexts()
Return how many real unique texts are available, 0 if not applicable.
Specified by:
numUniqueTexts in interface DocMaker

resetInputs

public void resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
Specified by:
resetInputs in interface DocMaker
Overrides:
resetInputs in interface BasicDocMaker

setConfig

public void setConfig(Config config)
Set the properties
Specified by:
setConfig in interface DocMaker
Overrides:
setConfig in interface BasicDocMaker

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.