Package com.attivio.sdk.search.fields
Class Compare
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.BinaryFieldExpression
-
- com.attivio.sdk.search.fields.Compare
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class Compare extends BinaryFieldExpression
Comparison expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompare.OperatorComparison Operator.-
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.BinaryFieldExpression
arg0, arg1
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description Compare(Compare.Operator op, FieldExpression x, FieldExpression y)Construct a new Compare function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Compareclone()protected Compareclone(FieldExpression x, FieldExpression y)Create a new instance of this FieldExpression, with different arguments.booleanequals(java.lang.Object other)Compare.OperatorgetOperator()Get the comparison operator.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()voidsetOperator(Compare.Operator value)Set the comparison operator.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.-
Methods inherited from class com.attivio.sdk.search.fields.BinaryFieldExpression
forEachField, getFirstArgument, getSecondArgument, hasChildren, isConstant, rewrite, setFirstArgument, setSecondArgument
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
Compare
public Compare(Compare.Operator op, FieldExpression x, FieldExpression y)
Construct a new Compare function.
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getOperator
public Compare.Operator getOperator()
Get the comparison operator.
-
setOperator
public void setOperator(Compare.Operator value)
Set the comparison operator.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classBinaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBinaryFieldExpression
-
clone
public Compare clone()
- Overrides:
clonein classBinaryFieldExpression
-
clone
protected Compare clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clonein classBinaryFieldExpression
-
-