Class NewAnalyzerTask
Create a new Analyzer and set it it in the getRunData() for use by all future tasks.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class NewAnalyzerTask : PerfTask, IDisposable
Constructors
| Improve this Doc View SourceNewAnalyzerTask(PerfRunData)
Declaration
public NewAnalyzerTask(PerfRunData runData)
Parameters
| Type | Name | Description |
|---|---|---|
| PerfRunData | runData |
Properties
| Improve this Doc View SourceSupportsParams
Declaration
public override bool SupportsParams { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
See Also
Methods
| Improve this Doc View SourceCreateAnalyzer(String)
Declaration
public static Analyzer CreateAnalyzer(string className)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | className |
Returns
| Type | Description |
|---|---|
| Analyzer |
DoLogic()
Declaration
public override int DoLogic()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
| Improve this Doc View SourceSetParams(String)
Set the params (analyzerName only), Comma-separate list of Analyzer class names. If the Analyzer lives in Lucene.Net.Analysis, the name can be shortened by dropping the Lucene.Net.Analysis part of the Fully Qualified Class Name.
Analyzer names may also refer to previously defined AnalyzerFactory's.
Example Declaration:
{"NewAnalyzer" NewAnalyzer(WhitespaceAnalyzer, SimpleAnalyzer, StopAnalyzer, Standard.StandardAnalyzer) >
Example AnalyzerFactory usage:
-AnalyzerFactory(name:'whitespace tokenized',WhitespaceTokenizer)
-NewAnalyzer('whitespace tokenized')
Declaration
public override void SetParams(string params)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | params | analyzerClassName, or empty for the StandardAnalyzer |
Overrides
Implements
System.IDisposable