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

SimpleDocMaker

public class SimpleDocMaker extends BasicDocMaker
Create documents for the test.

Fields Summary
private int
docID
static final String
DOC_TEXT
Constructors Summary
Methods Summary
protected DocDatagetNextDocData()

    if (docID>0 && !forever) {
      throw new NoMoreDataException();
    }
    addBytes(DOC_TEXT.length());
    return new DocData("doc"+newdocid(),DOC_TEXT, null, null, null);
  
private synchronized intnewdocid()

  
  // return a new docid
      
    return docID++;
  
public intnumUniqueTexts()

    return 0; // not applicable
  
public synchronized voidresetInputs()

    super.resetInputs();
    docID = 0;