Package org.apache.lucene.search
Class PhraseWildcardQuery.SingleTerm
- java.lang.Object
- 
- org.apache.lucene.search.PhraseWildcardQuery.PhraseTerm
- 
- org.apache.lucene.search.PhraseWildcardQuery.SingleTerm
 
 
- 
- Enclosing class:
- PhraseWildcardQuery
 
 protected static class PhraseWildcardQuery.SingleTerm extends PhraseWildcardQuery.PhraseTerm Phrase term with no expansion.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Termterm- 
Fields inherited from class org.apache.lucene.search.PhraseWildcardQuery.PhraseTermtermPosition
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSingleTerm(Term term, int termPosition)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcollectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData)CollectsTermStateandTermStatisticsfor the term (potentially expanded).protected intcollectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData)CollectsTermStateandTermStatisticsfor the term without expansion.booleanequals(Object o)protected QuerygetQuery()protected booleanhasExpansions()inthashCode()protected voidtoString(StringBuilder builder)
 
- 
- 
- 
Field Detail- 
termprotected final Term term 
 
- 
 - 
Constructor Detail- 
SingleTermprotected SingleTerm(Term term, int termPosition) 
 
- 
 - 
Method Detail- 
hasExpansionsprotected boolean hasExpansions() - Specified by:
- hasExpansionsin class- PhraseWildcardQuery.PhraseTerm
 
 - 
getQueryprotected Query getQuery() - Specified by:
- getQueryin class- PhraseWildcardQuery.PhraseTerm
 
 - 
collectTermDataprotected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, PhraseWildcardQuery.TermsData termsData) throws IOException Description copied from class:PhraseWildcardQuery.PhraseTermCollectsTermStateandTermStatisticsfor the term without expansion. It must be called only ifPhraseWildcardQuery.PhraseTerm.hasExpansions()returns false. Simplified version of#collectTermData(PhraseWildcardQuery, IndexSearcher, List, int, int, TermsData)with less arguments. This method throwsUnsupportedOperationExceptionif not overridden.- Overrides:
- collectTermDatain class- PhraseWildcardQuery.PhraseTerm
- Throws:
- IOException
 
 - 
collectTermDataprotected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) throws IOException Description copied from class:PhraseWildcardQuery.PhraseTermCollectsTermStateandTermStatisticsfor the term (potentially expanded).- Specified by:
- collectTermDatain class- PhraseWildcardQuery.PhraseTerm
- termsData-- PhraseWildcardQuery.TermsDatato update with the collected terms and stats.
- Returns:
- The number of expansions or matches in all segments; or 0 if this term does not match in any segment, in this case the phrase query can immediately stop.
- Throws:
- IOException
 
 - 
toStringprotected void toString(StringBuilder builder) - Specified by:
- toStringin class- PhraseWildcardQuery.PhraseTerm
 
 - 
equalspublic boolean equals(Object o) - Specified by:
- equalsin class- PhraseWildcardQuery.PhraseTerm
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein class- PhraseWildcardQuery.PhraseTerm
 
 
- 
 
-