Package com.attivio.sdk.search.fields
Class PhraseMatch
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.PhraseMatch
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class PhraseMatch extends FieldExpression
FieldExpression that returns abooleanresult indicating if a phrase matches a document.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description PhraseMatch(java.lang.String field, Phrase phrase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendParameters(java.lang.StringBuilder buffer)booleanequals(java.lang.Object other)FieldExpressionforEachPhrase(PhraseHandler handler)Applieshandlerfor eachPhraseargument.java.lang.StringgetFieldName()Get the field to match against.PhrasegetPhrase()Get the phrase to use for matching.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidrewrite(QueryHandler handler, boolean recursive)Rewrite any query objects in this FieldExpression usinghandler.voidsetFieldName(java.lang.String value)Set the field to match against.voidsetPhrase(Phrase value)Set the phrase to use for matching.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static PhraseMatchvalueOf(StringParser reader)-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, clone, copyOf, forEachField, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
PhraseMatch
public PhraseMatch(java.lang.String field, Phrase phrase)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
-
hashCode
public int hashCode()
-
valueOf
public static PhraseMatch valueOf(StringParser reader)
-
getFieldName
public java.lang.String getFieldName()
Get the field to match against.- Overrides:
getFieldNamein classFieldExpression
-
setFieldName
public void setFieldName(java.lang.String value)
Set the field to match against.
-
getPhrase
public Phrase getPhrase()
Get the phrase to use for matching.
-
setPhrase
public void setPhrase(Phrase value)
Set the phrase to use for matching.
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
forEachPhrase
public FieldExpression forEachPhrase(PhraseHandler handler)
- Overrides:
forEachPhrasein classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler.- Overrides:
rewritein classFieldExpression
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
appendParameters
protected void appendParameters(java.lang.StringBuilder buffer)
-
-