FileDocCategorySizeDatePackage
SimpleDocMaker.javaAPI DocApache Lucene 2.1.02382Wed Feb 14 10:46:16 GMT 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()

    DocData dd = new DocData();
    dd.body = DOC_TEXT;
    dd.name = "doc"+newdocid();
    addBytes(DOC_TEXT.length());
    return dd;
  
private synchronized intnewdocid()

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

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

    super.resetInputs();
    docID = 0;