Class SortableSingleDocSource
Adds fields appropriate for sorting: country, random_string and sort_field (int). Supports the following parameters:
- sort.rngdefines the range for sort-by-int field (default 20000).
- rand.seeddefines the seed to initialize Random with (default 13).
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class SortableSingleDocSource : SingleDocSource, IDisposable
Methods
GetNextDocData(DocData)
Returns the next DocData from the content source. Implementations must account for multi-threading, as multiple threads can call this method simultaneously.
Declaration
public override DocData GetNextDocData(DocData docData)
Parameters
Type | Name | Description |
---|---|---|
DocData | docData |
Returns
Type | Description |
---|---|
DocData |
Overrides
SetConfig(Config)
Sets the Config for this content source. If you override this
method, you must call base.SetConfig(config)
.
Declaration
public override void SetConfig(Config config)
Parameters
Type | Name | Description |
---|---|---|
Config | config |