public abstract class MatchDocIdSet
extends org.apache.lucene.search.DocIdSet
implements org.apache.lucene.util.Bits
DocIdSet that works on a "doc" level by checking if it matches or not.| Modifier | Constructor and Description |
|---|---|
protected |
MatchDocIdSet(int maxDoc,
org.apache.lucene.util.Bits acceptDocs) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.util.Bits |
bits() |
boolean |
get(int index) |
org.apache.lucene.search.DocIdSetIterator |
iterator() |
int |
length() |
protected abstract boolean |
matchDoc(int doc)
Does this document match?
|
protected MatchDocIdSet(int maxDoc,
@Nullable
org.apache.lucene.util.Bits acceptDocs)
protected abstract boolean matchDoc(int doc)
public org.apache.lucene.search.DocIdSetIterator iterator()
throws IOException
iterator in class org.apache.lucene.search.DocIdSetIOExceptionpublic org.apache.lucene.util.Bits bits()
throws IOException
bits in class org.apache.lucene.search.DocIdSetIOExceptionpublic boolean get(int index)
get in interface org.apache.lucene.util.Bitspublic int length()
length in interface org.apache.lucene.util.BitsCopyright © 2009–2016. All rights reserved.