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

this implementation supplies a filtered DocIdSet, that excludes all docids which are not in a Bits instance. this is especially useful in Lucene.Net.Search.Filter to apply the {@code acceptDocs} passed to {@code getDocIdSet()} before returning the final DocIdSet.
상속: FilteredDocIdSet
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
BitsFilteredDocIdSet ( Lucene.Net.Search.DocIdSet innerSet, Lucene.Net.Util.Bits acceptDocs )

Constructor.

Wrap ( Lucene.Net.Search.DocIdSet set, Lucene.Net.Util.Bits acceptDocs ) : Lucene.Net.Search.DocIdSet

Convenience wrapper method: If {@code acceptDocs == null} it returns the original set without wrapping.

보호된 메소드들

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

메소드 상세

BitsFilteredDocIdSet() 공개 메소드

Constructor.
public BitsFilteredDocIdSet ( Lucene.Net.Search.DocIdSet innerSet, Lucene.Net.Util.Bits acceptDocs )
innerSet Lucene.Net.Search.DocIdSet Underlying DocIdSet
acceptDocs Lucene.Net.Util.Bits Allowed docs, all docids not in this set will not be returned by this DocIdSet

Match() 보호된 메소드

protected Match ( int docid ) : bool
docid int
리턴 bool

Wrap() 공개 정적인 메소드

Convenience wrapper method: If {@code acceptDocs == null} it returns the original set without wrapping.
public static Wrap ( Lucene.Net.Search.DocIdSet set, Lucene.Net.Util.Bits acceptDocs ) : Lucene.Net.Search.DocIdSet
set Lucene.Net.Search.DocIdSet Underlying DocIdSet. If {@code null}, this method returns {@code null}
acceptDocs Lucene.Net.Util.Bits Allowed docs, all docids not in this set will not be returned by this DocIdSet. /// If {@code null}, this method returns the original set without wrapping.
리턴 Lucene.Net.Search.DocIdSet