public final class UnaryMathExpression extends UnaryFieldExpression
NOTE: if the underlaying FieldExpression returns multiple values, each value will be operated on individually.
| Modifier and Type | Class and Description |
|---|---|
static class |
UnaryMathExpression.Method
Unary Function type.
|
FieldExpression.StringModeexpressionalias, EMPTY_ARRAY| Constructor and Description |
|---|
UnaryMathExpression(UnaryMathExpression.Method method,
FieldExpression expression)
Construct a new UnaryMathExpression.
|
UnaryMathExpression(UnaryMathExpression.Method method,
FieldExpression expression,
String alias)
Construct a new UnaryMathExpression to apply to a
FieldExpression with an alias. |
UnaryMathExpression(UnaryMathExpression.Method method,
String fieldName)
Construct a new UnaryMathExpression to apply to a field.
|
UnaryMathExpression(UnaryMathExpression.Method method,
String fieldName,
String alias)
Construct a new UnaryMathExpression to apply to a field with an alias.
|
| Modifier and Type | Method and Description |
|---|---|
UnaryMathExpression |
clone() |
protected UnaryMathExpression |
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.
|
UnaryMathExpression.Method |
getMethod()
Get the method to use.
|
SchemaField.Type |
getType(Schema schema)
Resolve the type for this expression.
|
int |
hashCode() |
boolean |
isConstant()
Returns
true if this field expression evaluates to a constant value. |
protected boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
protected void |
toString(StringBuilder buffer,
FieldExpression.StringMode mode)
Writes the string representation of this field expression to
buffer. |
equalsIgnoreAlias, getExpression, getFieldName, hasChildren, rewrite, rewriteChildren, setExpressionas, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toStringpublic UnaryMathExpression(UnaryMathExpression.Method method, String fieldName)
public UnaryMathExpression(UnaryMathExpression.Method method, String fieldName, String alias)
public UnaryMathExpression(UnaryMathExpression.Method method, FieldExpression expression)
public UnaryMathExpression(UnaryMathExpression.Method method, FieldExpression expression, String alias)
FieldExpression with an alias.public SchemaField.Type getType(Schema schema)
getType in class FieldExpressionpublic boolean isConstant()
true if this field expression evaluates to a constant value.isConstant in class UnaryFieldExpressionpublic UnaryMathExpression.Method getMethod()
protected void toString(StringBuilder buffer, FieldExpression.StringMode mode)
buffer.
NOTE: the alias will not be written to buffer by this function.
toString in class FieldExpressionprotected boolean parametersEqual(FieldExpression other)
true if other's parameters are the same as this.parametersEqual in class UnaryFieldExpressionpublic int hashCode()
hashCode in class UnaryFieldExpressionpublic UnaryMathExpression clone()
clone in class UnaryFieldExpressionprotected UnaryMathExpression clone(FieldExpression e)
clone in class UnaryFieldExpressionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.