Class PerfRunData
Data maintained by a performance test run.
Inheritance
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class PerfRunData : IDisposable
Remarks
Data includes:
- Configuration.
- Directory, Writer, Reader.
- Taxonomy Directory, Writer, Reader.
- DocMaker, FacetSource and a few instances of QueryMaker.
- Named AnalysisFactories.
- Analyzer.
- Statistics data which updated during the run.
Config properties:
- work.dir<path to root of docs and index dirs| Default: work>
- analyzer<class name for analyzer| Default: StandardAnalyzer>
- doc.maker<class name for doc-maker| Default: DocMaker>
- facet.source<class name for facet-source| Default: RandomFacetSource>
- query.maker<class name for query-maker| Default: SimpleQueryMaker>
- log.queries<whether queries should be printed| Default: false>
- directory<type of directory to use for the index| Default: RAMDirectory>
- taxonomy.directory<type of directory for taxonomy index| Default: RAMDirectory>
Constructors
Name | Description |
---|---|
PerfRunData(Config) |
Properties
Name | Description |
---|---|
Analyzer | Gets or sets the analyzer. |
AnalyzerFactories | |
Config | Gets the config. |
ContentSource | Gets the ContentSource. |
Directory | Gets or sets the directory. |
DocMaker | Returns the DocMaker. |
FacetSource | Gets the FacetSource. |
IndexWriter | Gets or sets the indexWriter. |
Locale | Gets or sets the culture. |
Points | Gets the points. |
StartTimeMillis | Gets start time in milliseconds. |
TaxonomyDir | Gets the taxonomy directory. |
TaxonomyWriter | Gets or sets the taxonomy writer. |
Methods
Name | Description |
---|---|
Dispose() | |
Dispose(Boolean) | |
GetIndexReader() | Returns the indexReader. NOTE: this returns a reference. You must call IndexReader.DecRef() when you're done. |
GetIndexSearcher() | Returns the indexSearcher. NOTE: this returns a reference to the underlying IndexReader. You must call IndexReader.DecRef() when you're done. |
GetPerfObject(String) | Returns an object that was previously set by SetPerfObject(String, Object). |
GetQueryMaker(ReadTask) | Returns the queryMaker by read task type (class). |
GetTaxonomyReader() | Returns the taxonomyReader. NOTE: this returns a reference. You must call TaxonomyReader.DecRef() when you're done. |
Reinit(Boolean) | |
ResetInputs() | |
SetIndexReader(DirectoryReader) | Set the index reader. Takes ownership of that index reader, that is, internally performs indexReader.incRef() (If caller no longer needs that reader it should decRef()/close() it after calling this method, otherwise, the reader will remain open). |
SetPerfObject(String, Object) | Sets an object that is required by PerfTasks, keyed by the given
|
SetStartTimeMillis() | |
SetTaxonomyReader(TaxonomyReader) | Set the taxonomy reader. Takes ownership of that taxonomy reader, that is, internally performs taxoReader.IncRef() (If caller no longer needs that reader it should DecRef()/Dispose() it after calling this method, otherwise, the reader will remain open). |