protected abstract static class PhraseWildcardQuery.PhraseTerm extends Object
PhraseWildcardQuery.PhraseTerm are light and immutable. They do not hold query
processing data such as PhraseWildcardQuery.TermsData. That way, the PhraseWildcardQuery
is immutable and light itself and can be used safely as a key of the query cache.| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
termPosition |
| 限定符 | 构造器和说明 |
|---|---|
protected |
PhraseTerm(int termPosition) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract int |
collectTermData(PhraseWildcardQuery query,
IndexSearcher searcher,
List<LeafReaderContext> segments,
int remainingMultiTerms,
int maxExpansionsForTerm,
PhraseWildcardQuery.TermsData termsData)
Collects
TermState and TermStatistics for the term (potentially expanded). |
protected int |
collectTermData(PhraseWildcardQuery query,
IndexSearcher searcher,
List<LeafReaderContext> segments,
PhraseWildcardQuery.TermsData termsData)
Collects
TermState and TermStatistics for the term without expansion. |
abstract boolean |
equals(Object o) |
protected abstract Query |
getQuery() |
protected abstract boolean |
hasExpansions() |
abstract int |
hashCode() |
protected abstract void |
toString(StringBuilder builder) |
protected abstract boolean hasExpansions()
protected abstract Query getQuery()
protected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) throws IOException
TermState and TermStatistics for the term without expansion.
It must be called only if hasExpansions() returns false.
Simplified version of #collectTermData(PhraseWildcardQuery, IndexSearcher, List, int, int, TermsData)
with less arguments. This method throws UnsupportedOperationException if not overridden.IOExceptionprotected abstract int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) throws IOException
TermState and TermStatistics for the term (potentially expanded).termsData - PhraseWildcardQuery.TermsData to update with the collected terms and stats.IOExceptionprotected abstract void toString(StringBuilder builder)
Copyright © 2022. All rights reserved.