protected static class PhraseWildcardQuery.SingleTerm extends PhraseWildcardQuery.PhraseTerm
Modifier and Type | Field and Description |
---|---|
protected Term |
term |
termPosition
Modifier | Constructor and Description |
---|---|
protected |
SingleTerm(Term term,
int termPosition) |
Modifier and Type | Method and Description |
---|---|
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()
hasExpansions
in class PhraseWildcardQuery.PhraseTerm
protected Query getQuery()
getQuery
in class PhraseWildcardQuery.PhraseTerm
protected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) throws IOException
PhraseWildcardQuery.PhraseTerm
TermState
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
in class PhraseWildcardQuery.PhraseTerm
IOException
protected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) throws IOException
PhraseWildcardQuery.PhraseTerm
TermState
and TermStatistics
for the term (potentially expanded).collectTermData
in class PhraseWildcardQuery.PhraseTerm
termsData
- PhraseWildcardQuery.TermsData
to update with the collected terms and stats.IOException
protected void toString(StringBuilder builder)
toString
in class PhraseWildcardQuery.PhraseTerm
public boolean equals(Object o)
equals
in class PhraseWildcardQuery.PhraseTerm
public int hashCode()
hashCode
in class PhraseWildcardQuery.PhraseTerm
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.