Create a TimeLimitedCollector wrapper over another HitCollector with a specified timeout.
Namespace: Lucene.Net.SearchAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public TimeLimitedCollector( HitCollector hc, long timeAllowed ) |
Visual Basic |
---|
Public Sub New ( _ hc As HitCollector, _ timeAllowed As Long _ ) |
Visual C++ |
---|
public: TimeLimitedCollector( HitCollector^ hc, long long timeAllowed ) |
Parameters
- hc
- Type: Lucene.Net.Search..::..HitCollector
the wrapped HitCollector
- timeAllowed
- Type: System..::..Int64
max time allowed for collecting hits after which {@link TimeExceededException} is thrown