Class WildcardTerm
- java.lang.Object
-
- com.attivio.sdk.search.query.phrase.Phrase
-
- com.attivio.sdk.search.query.phrase.PhraseTerm
-
- com.attivio.sdk.search.query.phrase.WildcardTerm
-
- All Implemented Interfaces:
TokenAnnotationSet,java.io.Serializable,java.lang.Cloneable
public final class WildcardTerm extends PhraseTerm
Phrase that matches all terms that match a wildcard expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.query.phrase.Phrase
Phrase.Parameter
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.query.phrase.PhraseTerm
annotations, endOffset, startOffset
-
Fields inherited from class com.attivio.sdk.search.query.phrase.Phrase
boost, parameters
-
-
Constructor Summary
Constructors Constructor Description WildcardTerm()ConstructorWildcardTerm(SearchTerm term)ConstructorWildcardTerm(java.lang.String text)ConstructorWildcardTerm(java.lang.String text, TokenAnnotation annotation)ConstructorWildcardTerm(java.lang.String text, TokenAnnotation... annotation)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WildcardTermclone()static booleancontainsWildcard(java.lang.String text)Check iftextcontains any wildcard characters.booleanequals(java.lang.Object other)java.lang.StringgetText()inthashCode()booleanisMatchAll()Returnstrueif this phrase will match all documents.static booleanisMatchAll(java.lang.String text)Check iftextis a wildcard that matches everything.static WildcardTermmatchAll()Create a wildcard term that matches all documents.voidsetText(java.lang.String value)voidtoString(java.lang.StringBuilder buffer, boolean compact)Appends the string representation of this query tobuffer.-
Methods inherited from class com.attivio.sdk.search.query.phrase.PhraseTerm
containsAnnotation, containsParameters, getAnnotations, getEndOffset, getStartOffset, offsetGap, rewriteChildren, setAnnotation, setAnnotations, setEndOffset, setParameter, setStartOffset, unsetAnnotation
-
Methods inherited from class com.attivio.sdk.search.query.phrase.Phrase
containsParameters, copyParameters, getBoost, getParameter, getParameter, getParameter, getParameter, getParameterInternal, parameters, parseIntParameter, removeParameter, rewrite, setBoost, setParameters, toArray, toString, toString
-
-
-
-
Constructor Detail
-
WildcardTerm
public WildcardTerm()
Constructor
-
WildcardTerm
public WildcardTerm(java.lang.String text)
Constructor
-
WildcardTerm
public WildcardTerm(java.lang.String text, TokenAnnotation annotation)Constructor
-
WildcardTerm
public WildcardTerm(java.lang.String text, TokenAnnotation... annotation)Constructor
-
WildcardTerm
public WildcardTerm(SearchTerm term)
Constructor
-
-
Method Detail
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String value)
-
isMatchAll
public boolean isMatchAll()
Returnstrueif this phrase will match all documents.- Overrides:
isMatchAllin classPhrase
-
clone
public WildcardTerm clone()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPhraseTerm
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classPhraseTerm
-
toString
public void toString(java.lang.StringBuilder buffer, boolean compact)Appends the string representation of this query tobuffer.
-
matchAll
public static WildcardTerm matchAll()
Create a wildcard term that matches all documents.
-
isMatchAll
public static boolean isMatchAll(java.lang.String text)
Check iftextis a wildcard that matches everything.
-
containsWildcard
public static boolean containsWildcard(java.lang.String text)
Check iftextcontains any wildcard characters.
-
-