C# 클래스 Lucene.Net.Search.FilteredDocIdSet

Abstract decorator class for a DocIdSet implementation that provides on-demand filtering/validation mechanism on a given DocIdSet.

Technically, this same functionality could be achieved with ChainedFilter (under queries/), however the benefit of this class is it never materializes the full bitset for the filter. Instead, the #match method is invoked on-demand, per docID visited during searching. If you know few docIDs will be visited, and the logic behind #match is relatively costly, this may be a better way to filter than ChainedFilter.

상속: Lucene.Net.Search.DocIdSet
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
FilteredDocIdSet ( Lucene.Net.Search.DocIdSet innerSet )

Constructor.

GetBits ( ) : Lucene.Net.Util.Bits
GetIterator ( ) : DocIdSetIterator

Implementation of the contract to build a DocIdSetIterator.

보호된 메소드들

메소드 설명
Match ( int docid ) : bool

Validation method to determine whether a docid should be in the result set.

메소드 상세

FilteredDocIdSet() 공개 메소드

Constructor.
public FilteredDocIdSet ( Lucene.Net.Search.DocIdSet innerSet )
innerSet Lucene.Net.Search.DocIdSet Underlying DocIdSet

GetBits() 공개 메소드

public GetBits ( ) : Lucene.Net.Util.Bits
리턴 Lucene.Net.Util.Bits

GetIterator() 공개 메소드

Implementation of the contract to build a DocIdSetIterator.
public GetIterator ( ) : DocIdSetIterator
리턴 DocIdSetIterator

Match() 보호된 추상적인 메소드

Validation method to determine whether a docid should be in the result set.
protected abstract Match ( int docid ) : bool
docid int docid to be tested
리턴 bool