public abstract class BinaryFieldExpression extends FieldExpression
FieldExpression that takes two FieldExpressions as arguments.FieldExpression.StringMode| Modifier and Type | Field and Description |
|---|---|
protected FieldExpression |
arg0
The First argument
|
protected FieldExpression |
arg1
The Second argument
|
alias, EMPTY_ARRAY| Constructor and Description |
|---|
BinaryFieldExpression(FieldExpression x,
FieldExpression y) |
BinaryFieldExpression(FieldExpression x,
FieldExpression y,
String alias)
Construct a new BinaryFieldExpression.
|
BinaryFieldExpression(String alias)
Construct a new BinaryFieldExpression with an
alias. |
| Modifier and Type | Method and Description |
|---|---|
BinaryFieldExpression |
clone() |
protected abstract FieldExpression |
clone(FieldExpression x,
FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.
|
boolean |
equalsIgnoreAlias(FieldExpression other)
Returns
true if other is the same as this, with the exception of alias. |
FieldExpression |
getFirstArgument()
Get the first argument in this binary expression.
|
FieldExpression |
getSecondArgument()
Get the second argument in this binary expression.
|
boolean |
hasChildren()
Returns
true if this field expression has any sub FieldExpressions. |
int |
hashCode() |
boolean |
isConstant()
Returns
true if this field expression evaluates to a constant value. |
protected abstract boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
void |
rewrite(QueryHandler handler,
boolean recursive)
Rewrite any query objects in this FieldExpression using
handler. |
FieldExpression |
rewriteChildren(FieldExpressionHandler handler)
Traverse this FieldExpression using
handler to visit/rewrite direct child elements if this expression. |
void |
setFirstArgument(FieldExpression value)
Set the first argument in this binary expression.
|
void |
setSecondArgument(FieldExpression value)
Set the second argument in this binary expression.
|
as, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, getFieldName, getType, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toString, toStringprotected FieldExpression arg0
protected FieldExpression arg1
public BinaryFieldExpression(String alias)
alias.public BinaryFieldExpression(FieldExpression x, FieldExpression y)
public BinaryFieldExpression(FieldExpression x, FieldExpression y, String alias)
public boolean isConstant()
true if this field expression evaluates to a constant value.isConstant in class FieldExpressionpublic FieldExpression getFirstArgument()
public void setFirstArgument(FieldExpression value)
public FieldExpression getSecondArgument()
public void setSecondArgument(FieldExpression value)
public boolean hasChildren()
true if this field expression has any sub FieldExpressions.hasChildren in class FieldExpressionpublic void rewrite(QueryHandler handler, boolean recursive)
handler.rewrite in class FieldExpressionpublic FieldExpression rewriteChildren(FieldExpressionHandler handler)
handler to visit/rewrite direct child elements if this expression.
NOTE: this method traverses direct child expressions (if any) only.
rewriteChildren in class FieldExpressionpublic final boolean equalsIgnoreAlias(FieldExpression other)
true if other is the same as this, with the exception of alias.equalsIgnoreAlias in class FieldExpressionprotected abstract boolean parametersEqual(FieldExpression other)
true if other's parameters are the same as this.public int hashCode()
hashCode in class FieldExpressionpublic BinaryFieldExpression clone()
clone in class FieldExpressionprotected abstract FieldExpression clone(FieldExpression x, FieldExpression y)
Copyright © 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.