Package com.attivio.sdk.search.fields
Class BinaryMathExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.BinaryFieldExpression
-
- com.attivio.sdk.search.fields.BinaryMathExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class BinaryMathExpression extends BinaryFieldExpression
Mathematical expression for applying a function to two arguments.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBinaryMathExpression.MethodBinary Function type.-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description static MultiValueModeDEFAULT_MULTI_VALUE_MODEThe default MultiValueMode.-
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 BinaryMathExpression(BinaryMathExpression.Method method, FieldExpression x, FieldExpression y)Construct a new BinaryMathExpression.BinaryMathExpression(BinaryMathExpression.Method method, FieldExpression x, FieldExpression y, MultiValueMode mode)Construct a new BinaryMathExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryMathExpressionclone()protected BinaryMathExpressionclone(FieldExpression x, FieldExpression y)Create a new instance of this FieldExpression, with different arguments.booleanequals(java.lang.Object other)BinaryMathExpression.MethodgetMethod()Get the method to use.MultiValueModegetMultiValueMode()Get theMultiValueMode.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()voidsetMultiValueMode(MultiValueMode mode)Set theMultiValueMode.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
-
-
-
-
Field Detail
-
DEFAULT_MULTI_VALUE_MODE
public static final MultiValueMode DEFAULT_MULTI_VALUE_MODE
The default MultiValueMode.
-
-
Constructor Detail
-
BinaryMathExpression
public BinaryMathExpression(BinaryMathExpression.Method method, FieldExpression x, FieldExpression y)
Construct a new BinaryMathExpression.
-
BinaryMathExpression
public BinaryMathExpression(BinaryMathExpression.Method method, FieldExpression x, FieldExpression y, MultiValueMode mode)
Construct a new BinaryMathExpression.
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getMethod
public BinaryMathExpression.Method getMethod()
Get the method to use.
-
getMultiValueMode
public MultiValueMode getMultiValueMode()
Get theMultiValueMode.
-
setMultiValueMode
public void setMultiValueMode(MultiValueMode mode)
Set theMultiValueMode.
-
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 BinaryMathExpression clone()
- Overrides:
clonein classBinaryFieldExpression
-
clone
protected BinaryMathExpression clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clonein classBinaryFieldExpression
-
-