Package com.attivio.sdk.search.fields
Class FuzzyMatch
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.FuzzyMatch
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class FuzzyMatch extends UnaryFieldExpression
Fuzzy match field expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PREFIX_LENGTH
Default value for prefix lengthstatic int
DEFAULT_SIMILARITY
Default value for similarity-
Fields inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
expression
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description FuzzyMatch(FieldExpression input, java.lang.String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FuzzyMatch
clone()
protected FuzzyMatch
clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
java.lang.String
getPattern()
Get the pattern for matching.int
getPrefixLength()
int
getSimilarity()
SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
void
setPattern(java.lang.String value)
Set the pattern for matching.void
setPrefixLength(int value)
void
setSimilarity(int value)
protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode strmode)
Writes the string representation of this field expression tobuffer
.static FuzzyMatch
valueOf(StringParser reader)
-
Methods inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
forEachField, getExpression, getFieldName, hasChildren, isConstant, rewrite, setExpression
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Field Detail
-
DEFAULT_SIMILARITY
public static final int DEFAULT_SIMILARITY
Default value for similarity- See Also:
- Constant Field Values
-
DEFAULT_PREFIX_LENGTH
public static final int DEFAULT_PREFIX_LENGTH
Default value for prefix length- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FuzzyMatch
public FuzzyMatch(FieldExpression input, java.lang.String pattern)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
getPattern
public java.lang.String getPattern()
Get the pattern for matching.
-
setPattern
public void setPattern(java.lang.String value)
Set the pattern for matching.
-
getSimilarity
public int getSimilarity()
-
setSimilarity
public void setSimilarity(int value)
-
getPrefixLength
public int getPrefixLength()
-
setPrefixLength
public void setPrefixLength(int value)
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode strmode)
Writes the string representation of this field expression tobuffer
.- Specified by:
toString
in classFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classUnaryFieldExpression
-
clone
public FuzzyMatch clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected FuzzyMatch clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
valueOf
public static FuzzyMatch valueOf(StringParser reader)
-
-