Package com.attivio.sdk.search.fields
Class BinaryFieldExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.BinaryFieldExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
BinaryMathExpression,Compare,DateAdd,DateDiff
public abstract class BinaryFieldExpression extends FieldExpression
AbstractFieldExpressionthat takes twoFieldExpressions as arguments.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldExpressionarg0The First argumentprotected FieldExpressionarg1The Second argument-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description BinaryFieldExpression()Construct a new BinaryFieldExpression.BinaryFieldExpression(FieldExpression x, FieldExpression y)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BinaryFieldExpressionclone()protected abstract FieldExpressionclone(FieldExpression x, FieldExpression y)Create a new instance of this FieldExpression, with different arguments.booleanequals(java.lang.Object other)FieldExpressionforEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)Applieshandlerfor eachFieldExpressionargument.FieldExpressiongetFirstArgument()Get the first argument in this binary expression.FieldExpressiongetSecondArgument()Get the second argument in this binary expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidrewrite(QueryHandler handler, boolean recursive)Rewrite any query objects in this FieldExpression usinghandler.voidsetFirstArgument(FieldExpression value)Set the first argument in this binary expression.voidsetSecondArgument(FieldExpression value)Set the second argument in this binary expression.-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, getType, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, toString, valueOf
-
-
-
-
Field Detail
-
arg0
protected FieldExpression arg0
The First argument
-
arg1
protected FieldExpression arg1
The Second argument
-
-
Constructor Detail
-
BinaryFieldExpression
public BinaryFieldExpression()
Construct a new BinaryFieldExpression.
-
BinaryFieldExpression
public BinaryFieldExpression(FieldExpression x, FieldExpression y)
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
getFirstArgument
public FieldExpression getFirstArgument()
Get the first argument in this binary expression.
-
setFirstArgument
public void setFirstArgument(FieldExpression value)
Set the first argument in this binary expression.
-
getSecondArgument
public FieldExpression getSecondArgument()
Get the second argument in this binary expression.
-
setSecondArgument
public void setSecondArgument(FieldExpression value)
Set the second argument in this binary expression.
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler.- Overrides:
rewritein classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachFieldin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
clone
public BinaryFieldExpression clone()
- Overrides:
clonein classFieldExpression
-
clone
protected abstract FieldExpression clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.
-
-