Class TimeLimitingCollector
The Time
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class TimeLimitingCollector : Collector
Constructors
Name | Description |
---|---|
Time |
Create a TimeLimitedCollector wrapper over another Collector with a specified timeout. |
Fields
Name | Description |
---|---|
DEFAULT_GREEDY | Default for Is |
DEFAULT_RESOLUTION | Default timer resolution. |
Properties
Name | Description |
---|---|
Accepts |
|
Is |
Checks if this time limited collector is greedy in collecting the last hit.
A non greedy collector, upon a timeout, would throw a Time |
Resolution | Gets or sets the timer resolution.
The default timer resolution is 20 milliseconds.
This means that a search required to take no longer than
800 milliseconds may be stopped after 780 to 820 milliseconds.
|
Methods
Name | Description |
---|---|
Collect(Int32) | Calls Collect(Int32) on the decorated Collector unless the allowed time has passed, in which case it throws an exception. |
Set |
|
Set |