Package com.attivio.sdk.search.fields
Class Union
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.MultiaryFieldExpression
-
- com.attivio.sdk.search.fields.Union
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Union extends MultiaryFieldExpression
Union field values for multiple sub expressions.This field returned for this FieldExpression will be a multi-value field containing all values for all input fields. The order of the returned field values is not defined. 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 Union()
Union(FieldExpression... args)
Union(java.util.List<? extends FieldExpression> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Union
clone()
protected Union
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 Union
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
-
Union
public Union()
-
Union
public Union(java.util.List<? extends FieldExpression> args)
-
Union
public Union(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 Union clone()
- Overrides:
clone
in classFieldExpression
-
clone
protected Union clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clone
in classMultiaryFieldExpression
-
valueOf
public static Union valueOf(StringParser parser)
-
-