The TimeLimitedCollector type exposes the following members.
Methods
Name | Description | |
---|---|---|
Collect | Calls collect() on the decorated HitCollector.
(Overrides HitCollector..::..Collect(Int32, Single).) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetResolution | Return the timer resolution. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsGreedy | Checks if this time limited collector is greedy in collecting the last hit.
A non greedy collector, upon a timeout, would throw a {@link TimeExceededException}
without allowing the wrapped collector to collect current doc. A greedy one would
first allow the wrapped hit collector to collect current doc and only then
throw a {@link TimeExceededException}.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetGreedy | Sets whether this time limited collector is greedy. | |
SetResolution | Set 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.
Note that:
| |
ToString | (Inherited from Object.) |