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
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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