C# Класс Lucene.Net.Search.TimeLimitingCollector

The TimeLimitingCollector is used to timeout search requests that take longer than the maximum allowed search time limit. After this time is exceeded, the search thread is stopped by throwing a TimeExceededException.
Наследование: Collector
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DEFAULT_GREEDY bool

Открытые методы

Метод Описание
Collect ( int doc ) : void

Calls Collector.Collect(int) on the decorated Collector unless the allowed time has passed, in which case it throws an exception.

if the time allowed has exceeded.

SetNextReader ( Lucene.Net.Index.IndexReader reader, int base_Renamed ) : void
SetScorer ( Lucene.Net.Search.Scorer scorer ) : void
TimeLimitingCollector ( Collector collector, long timeAllowed ) : System

Create a TimeLimitedCollector wrapper over another Collector with a specified timeout.

Приватные методы

Метод Описание
InitBlock ( ) : void
TimeLimitingCollector ( ) : System

Описание методов

Collect() публичный Метод

Calls Collector.Collect(int) on the decorated Collector unless the allowed time has passed, in which case it throws an exception. if the time allowed has exceeded.
public Collect ( int doc ) : void
doc int
Результат void

SetNextReader() публичный Метод

public SetNextReader ( Lucene.Net.Index.IndexReader reader, int base_Renamed ) : void
reader Lucene.Net.Index.IndexReader
base_Renamed int
Результат void

SetScorer() публичный Метод

public SetScorer ( Lucene.Net.Search.Scorer scorer ) : void
scorer Lucene.Net.Search.Scorer
Результат void

TimeLimitingCollector() публичный Метод

Create a TimeLimitedCollector wrapper over another Collector with a specified timeout.
public TimeLimitingCollector ( Collector collector, long timeAllowed ) : System
collector Collector the wrapped ///
timeAllowed long max time allowed for collecting hits after which is thrown ///
Результат System

Описание свойств

DEFAULT_GREEDY публичное свойство

Default for IsGreedy().
public bool DEFAULT_GREEDY
Результат bool