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.| Modifier and Type | Field and Description |
|---|---|
protected int |
termPosition |
| Modifier | Constructor and Description |
|---|---|
protected |
PhraseTerm(int termPosition) |
| Modifier and Type | Method and Description |
|---|---|
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 © 2000-2021 Apache Software Foundation. All Rights Reserved.