Class SrndTruncQuery
- java.lang.Object
-
- org.apache.lucene.queryParser.surround.query.SrndQuery
-
- org.apache.lucene.queryParser.surround.query.SimpleTerm
-
- org.apache.lucene.queryParser.surround.query.SrndTruncQuery
-
- All Implemented Interfaces:
Cloneable,Comparable<SimpleTerm>,DistanceSubQuery
public class SrndTruncQuery extends SimpleTerm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.queryParser.surround.query.SimpleTerm
SimpleTerm.MatchingTermVisitor
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryParser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Constructor Summary
Constructors Constructor Description SrndTruncQuery(String truncated, char unlimited, char mask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendRegExpForChar(char c, StringBuilder re)StringgetTruncated()protected booleanmatchingChar(char c)StringtoStringUnquoted()protected voidtruncatedToPrefixAndPattern()voidvisitMatchingTerms(org.apache.lucene.index.IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)-
Methods inherited from class org.apache.lucene.queryParser.surround.query.SimpleTerm
addSpanQueries, compareTo, distanceSubQueryNotAllowed, getFieldOperator, getQuote, makeLuceneQueryFieldNoBoost, suffixToString, toString
-
Methods inherited from class org.apache.lucene.queryParser.surround.query.SrndQuery
clone, getWeight, getWeightOperator, getWeightString, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight, weightToString
-
-
-
-
Constructor Detail
-
SrndTruncQuery
public SrndTruncQuery(String truncated, char unlimited, char mask)
-
-
Method Detail
-
getTruncated
public String getTruncated()
-
toStringUnquoted
public String toStringUnquoted()
- Specified by:
toStringUnquotedin classSimpleTerm
-
matchingChar
protected boolean matchingChar(char c)
-
appendRegExpForChar
protected void appendRegExpForChar(char c, StringBuilder re)
-
truncatedToPrefixAndPattern
protected void truncatedToPrefixAndPattern()
-
visitMatchingTerms
public void visitMatchingTerms(org.apache.lucene.index.IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws IOException- Specified by:
visitMatchingTermsin classSimpleTerm- Throws:
IOException
-
-