Package com.attivio.sdk.search.fields
Class Coalesce
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.MultiaryFieldExpression
-
- com.attivio.sdk.search.fields.Coalesce
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Coalesce extends MultiaryFieldExpression
Coalesce multiple sub FieldExpressions.This field returned for this FieldExpression will be that of the first non-null FieldExpression specified as arguments to this field expression. NOTE: the data type of the returned field will be the most lenient data type of all sub FieldExpressions. That is, if the child field expressions are of the data types INT, STRING, DOUBLE, then the returned field will be a STRING field.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
MultiaryFieldExpression.Method
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
args
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description Coalesce()
Coalesce(FieldExpression... args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Coalesce
clone()
protected Coalesce
clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.boolean
equals(java.lang.Object other)
SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static Coalesce
valueOf(StringParser parser)
-
Methods inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
forEachField, getArgument, getArgumentCount, getArguments, hasChildren, isConstant, rewrite, setArguments, setArguments, setArguments
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
Coalesce
public Coalesce()
-
Coalesce
public Coalesce(FieldExpression... args)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.- Specified by:
toString
in classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classMultiaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMultiaryFieldExpression
-
clone
public Coalesce clone()
- Overrides:
clone
in classFieldExpression
-
clone
protected Coalesce clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clone
in classMultiaryFieldExpression
-
valueOf
public static Coalesce valueOf(StringParser parser)
-
-