public class FilterableTermsEnum
extends org.apache.lucene.index.TermsEnum
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.util.BytesRef |
current |
protected int |
currentDocFreq |
protected long |
currentTotalTermFreq |
protected int |
docsEnumFlag |
protected static int |
NOT_FOUND |
protected int |
numDocs |
| Constructor and Description |
|---|
FilterableTermsEnum(org.apache.lucene.index.IndexReader reader,
String field,
int docsEnumFlag,
org.apache.lucene.search.Query filter) |
| Modifier and Type | Method and Description |
|---|---|
int |
docFreq() |
int |
getNumDocs() |
org.apache.lucene.util.BytesRef |
next() |
long |
ord() |
org.apache.lucene.index.PostingsEnum |
postings(org.apache.lucene.index.PostingsEnum reuse,
int flags) |
org.apache.lucene.index.TermsEnum.SeekStatus |
seekCeil(org.apache.lucene.util.BytesRef text) |
boolean |
seekExact(org.apache.lucene.util.BytesRef text) |
void |
seekExact(long ord) |
org.apache.lucene.util.BytesRef |
term() |
long |
totalTermFreq() |
protected static final int NOT_FOUND
protected int currentDocFreq
protected long currentTotalTermFreq
protected org.apache.lucene.util.BytesRef current
protected final int docsEnumFlag
protected int numDocs
public FilterableTermsEnum(org.apache.lucene.index.IndexReader reader,
String field,
int docsEnumFlag,
@Nullable
org.apache.lucene.search.Query filter)
throws IOException
IOExceptionpublic int getNumDocs()
public org.apache.lucene.util.BytesRef term()
throws IOException
term in class org.apache.lucene.index.TermsEnumIOExceptionpublic boolean seekExact(org.apache.lucene.util.BytesRef text)
throws IOException
seekExact in class org.apache.lucene.index.TermsEnumIOExceptionpublic int docFreq()
throws IOException
docFreq in class org.apache.lucene.index.TermsEnumIOExceptionpublic long totalTermFreq()
throws IOException
totalTermFreq in class org.apache.lucene.index.TermsEnumIOExceptionpublic void seekExact(long ord)
throws IOException
seekExact in class org.apache.lucene.index.TermsEnumIOExceptionpublic org.apache.lucene.index.TermsEnum.SeekStatus seekCeil(org.apache.lucene.util.BytesRef text)
throws IOException
seekCeil in class org.apache.lucene.index.TermsEnumIOExceptionpublic long ord()
throws IOException
ord in class org.apache.lucene.index.TermsEnumIOExceptionpublic org.apache.lucene.index.PostingsEnum postings(org.apache.lucene.index.PostingsEnum reuse,
int flags)
throws IOException
postings in class org.apache.lucene.index.TermsEnumIOExceptionpublic org.apache.lucene.util.BytesRef next()
throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.