public class PerfRunData extends Object implements Closeable
Data includes:
Constructor and Description |
---|
PerfRunData(Config config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
Config |
getConfig() |
org.apache.lucene.store.Directory |
getDirectory() |
DocMaker |
getDocMaker()
Returns the docMaker.
|
FacetSource |
getFacetSource()
Returns the facet source.
|
org.apache.lucene.index.IndexReader |
getIndexReader() |
org.apache.lucene.search.IndexSearcher |
getIndexSearcher() |
org.apache.lucene.index.IndexWriter |
getIndexWriter() |
Locale |
getLocale() |
Object |
getPerfObject(String key)
Returns an object that was previously set by
setPerfObject(String, Object) . |
Points |
getPoints() |
QueryMaker |
getQueryMaker(ReadTask readTask) |
long |
getStartTimeMillis() |
org.apache.lucene.store.Directory |
getTaxonomyDir() |
org.apache.lucene.facet.taxonomy.TaxonomyReader |
getTaxonomyReader() |
org.apache.lucene.facet.taxonomy.TaxonomyWriter |
getTaxonomyWriter() |
void |
reinit(boolean eraseIndex) |
void |
resetInputs() |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) |
void |
setDirectory(org.apache.lucene.store.Directory directory) |
void |
setIndexReader(org.apache.lucene.index.IndexReader indexReader)
Set the index reader.
|
void |
setIndexWriter(org.apache.lucene.index.IndexWriter indexWriter) |
void |
setLocale(Locale locale) |
void |
setPerfObject(String key,
Object obj)
Sets an object that is required by
PerfTask s, keyed by the given
key . |
long |
setStartTimeMillis() |
void |
setTaxonomyReader(org.apache.lucene.facet.taxonomy.TaxonomyReader taxoReader)
Set the taxonomy reader.
|
void |
setTaxonomyWriter(org.apache.lucene.facet.taxonomy.TaxonomyWriter taxoWriter) |
public void close() throws IOException
close
in interface Closeable
IOException
public Object getPerfObject(String key)
setPerfObject(String, Object)
.public long setStartTimeMillis()
public long getStartTimeMillis()
public Points getPoints()
public org.apache.lucene.store.Directory getDirectory()
public void setDirectory(org.apache.lucene.store.Directory directory)
directory
- The directory to set.public org.apache.lucene.store.Directory getTaxonomyDir()
public void setTaxonomyReader(org.apache.lucene.facet.taxonomy.TaxonomyReader taxoReader) throws IOException
taxoReader
- The taxonomy reader to set.IOException
public org.apache.lucene.facet.taxonomy.TaxonomyReader getTaxonomyReader()
public void setTaxonomyWriter(org.apache.lucene.facet.taxonomy.TaxonomyWriter taxoWriter)
taxoWriter
- The taxonomy writer to set.public org.apache.lucene.facet.taxonomy.TaxonomyWriter getTaxonomyWriter()
public org.apache.lucene.index.IndexReader getIndexReader()
public org.apache.lucene.search.IndexSearcher getIndexSearcher()
public void setIndexReader(org.apache.lucene.index.IndexReader indexReader) throws IOException
indexReader
- The indexReader to set.IOException
public org.apache.lucene.index.IndexWriter getIndexWriter()
public void setIndexWriter(org.apache.lucene.index.IndexWriter indexWriter)
indexWriter
- The indexWriter to set.public org.apache.lucene.analysis.Analyzer getAnalyzer()
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public DocMaker getDocMaker()
public FacetSource getFacetSource()
public Locale getLocale()
public void setLocale(Locale locale)
locale
- the locale to setpublic Config getConfig()
public void resetInputs() throws IOException
IOException
public QueryMaker getQueryMaker(ReadTask readTask)