protected static class PhraseWildcardQuery.SingleTerm extends PhraseWildcardQuery.PhraseTerm
| 限定符和类型 | 字段和说明 |
|---|---|
protected Term |
term |
termPosition| 限定符 | 构造器和说明 |
|---|---|
protected |
SingleTerm(Term term,
int termPosition) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected 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. |
boolean |
equals(Object o) |
protected Query |
getQuery() |
protected boolean |
hasExpansions() |
int |
hashCode() |
protected void |
toString(StringBuilder builder) |
protected final Term term
protected SingleTerm(Term term, int termPosition)
protected boolean hasExpansions()
protected Query getQuery()
getQuery 在类中 PhraseWildcardQuery.PhraseTermprotected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) throws IOException
PhraseWildcardQuery.PhraseTermTermState and TermStatistics for the term without expansion.
It must be called only if PhraseWildcardQuery.PhraseTerm.hasExpansions() returns false.
Simplified version of #collectTermData(PhraseWildcardQuery, IndexSearcher, List, int, int, TermsData)
with less arguments. This method throws UnsupportedOperationException if not overridden.collectTermData 在类中 PhraseWildcardQuery.PhraseTermIOExceptionprotected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) throws IOException
PhraseWildcardQuery.PhraseTermTermState and TermStatistics for the term (potentially expanded).collectTermData 在类中 PhraseWildcardQuery.PhraseTermtermsData - PhraseWildcardQuery.TermsData to update with the collected terms and stats.IOExceptionprotected void toString(StringBuilder builder)
toString 在类中 PhraseWildcardQuery.PhraseTermpublic boolean equals(Object o)
equals 在类中 PhraseWildcardQuery.PhraseTermpublic int hashCode()
hashCode 在类中 PhraseWildcardQuery.PhraseTermCopyright © 2022. All rights reserved.