org.apache.lucene.benchmark.byTask
Class PerfRunData

java.lang.Object
  extended by org.apache.lucene.benchmark.byTask.PerfRunData

public class PerfRunData
extends Object

Data maintained by a performance test run.

Data includes:

Config properties: work.dir=<path to root of docs and index dirs| Default: work>


Constructor Summary
PerfRunData(Config config)
           
 
Method Summary
 Analyzer getAnalyzer()
           
 Config getConfig()
           
 Directory getDirectory()
           
 DocMaker getDocMaker()
          Returns the docMaker.
 IndexReader getIndexReader()
           
 IndexSearcher getIndexSearcher()
           
 IndexWriter getIndexWriter()
           
 Locale getLocale()
           
 Points getPoints()
           
 QueryMaker getQueryMaker(ReadTask readTask)
           
 long getStartTimeMillis()
           
 void reinit(boolean eraseIndex)
           
 void resetInputs()
           
 void setAnalyzer(Analyzer analyzer)
           
 void setDirectory(Directory directory)
           
 void setIndexReader(IndexReader indexReader)
           
 void setIndexWriter(IndexWriter indexWriter)
           
 void setLocale(Locale locale)
           
 long setStartTimeMillis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerfRunData

public PerfRunData(Config config)
            throws Exception
Throws:
Exception
Method Detail

reinit

public void reinit(boolean eraseIndex)
            throws Exception
Throws:
Exception

setStartTimeMillis

public long setStartTimeMillis()

getStartTimeMillis

public long getStartTimeMillis()
Returns:
Start time in milliseconds

getPoints

public Points getPoints()
Returns:
Returns the points.

getDirectory

public Directory getDirectory()
Returns:
Returns the directory.

setDirectory

public void setDirectory(Directory directory)
Parameters:
directory - The directory to set.

getIndexReader

public IndexReader getIndexReader()
Returns:
Returns the indexReader. NOTE: this returns a reference. You must call IndexReader.decRef() when you're done.

getIndexSearcher

public IndexSearcher getIndexSearcher()
Returns:
Returns the indexSearcher. NOTE: this returns a reference to the underlying IndexReader. You must call IndexReader.decRef() when you're done.

setIndexReader

public void setIndexReader(IndexReader indexReader)
                    throws IOException
Parameters:
indexReader - The indexReader to set.
Throws:
IOException

getIndexWriter

public IndexWriter getIndexWriter()
Returns:
Returns the indexWriter.

setIndexWriter

public void setIndexWriter(IndexWriter indexWriter)
Parameters:
indexWriter - The indexWriter to set.

getAnalyzer

public Analyzer getAnalyzer()
Returns:
Returns the anlyzer.

setAnalyzer

public void setAnalyzer(Analyzer analyzer)

getDocMaker

public DocMaker getDocMaker()
Returns the docMaker.


getLocale

public Locale getLocale()
Returns:
the locale

setLocale

public void setLocale(Locale locale)
Parameters:
locale - the locale to set

getConfig

public Config getConfig()
Returns:
Returns the config.

resetInputs

public void resetInputs()
                 throws IOException
Throws:
IOException

getQueryMaker

public QueryMaker getQueryMaker(ReadTask readTask)
Returns:
Returns the queryMaker by read task type (class)


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