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
AbstractFieldExpression
that takes twoFieldExpression
s 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 FieldExpression
arg0
The First argumentprotected FieldExpression
arg1
The 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 BinaryFieldExpression
clone()
protected abstract FieldExpression
clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.boolean
equals(java.lang.Object other)
FieldExpression
forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
Applieshandler
for eachFieldExpression
argument.FieldExpression
getFirstArgument()
Get the first argument in this binary expression.FieldExpression
getSecondArgument()
Get the second argument in this binary expression.boolean
hasChildren()
Returnstrue
if this field expression has any sub FieldExpressions.int
hashCode()
boolean
isConstant()
Returnstrue
if this field expression evaluates to a constant value.void
rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.void
setFirstArgument(FieldExpression value)
Set the first argument in this binary expression.void
setSecondArgument(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()
Returnstrue
if this field expression evaluates to a constant value.- Specified by:
isConstant
in 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()
Returnstrue
if this field expression has any sub FieldExpressions.- Specified by:
hasChildren
in classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.- Overrides:
rewrite
in classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachField
in classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFieldExpression
-
clone
public BinaryFieldExpression clone()
- Overrides:
clone
in classFieldExpression
-
clone
protected abstract FieldExpression clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.
-
-