public final class Compare extends BinaryFieldExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
Compare.Operator
Comparison Operator.
|
FieldExpression.StringModearg0, arg1alias, EMPTY_ARRAY| Constructor and Description |
|---|
Compare(Compare.Operator op,
FieldExpression x,
FieldExpression y)
Construct a new Compare function.
|
Compare(Compare.Operator op,
FieldExpression x,
FieldExpression y,
String alias)
Construct a new Compare function.
|
| Modifier and Type | Method and Description |
|---|---|
Compare |
clone() |
protected Compare |
clone(FieldExpression x,
FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.
|
Compare.Operator |
getOperator()
Get the comparison operator.
|
SchemaField.Type |
getType(Schema schema)
Resolve the type for this expression.
|
int |
hashCode() |
protected boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
void |
setOperator(Compare.Operator value)
Set the comparison operator.
|
protected void |
toString(StringBuilder buffer,
FieldExpression.StringMode mode)
Writes the string representation of this field expression to
buffer. |
equalsIgnoreAlias, getFirstArgument, getSecondArgument, hasChildren, isConstant, rewrite, rewriteChildren, setFirstArgument, setSecondArgumentas, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, getFieldName, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toStringpublic Compare(Compare.Operator op, FieldExpression x, FieldExpression y)
public Compare(Compare.Operator op, FieldExpression x, FieldExpression y, String alias)
public SchemaField.Type getType(Schema schema)
getType in class FieldExpressionpublic Compare.Operator getOperator()
public void setOperator(Compare.Operator value)
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 BinaryFieldExpressionpublic int hashCode()
hashCode in class BinaryFieldExpressionpublic Compare clone()
clone in class BinaryFieldExpressionprotected Compare clone(FieldExpression x, FieldExpression y)
clone in class BinaryFieldExpressionCopyright © 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.