public class Union extends MultiaryFieldExpression
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.
MultiaryFieldExpression.Method
FieldExpression.StringMode
args
alias, EMPTY_ARRAY
Constructor and Description |
---|
Union(FieldExpression... args) |
Union(FieldExpression[] args,
String alias) |
Union(List<? extends FieldExpression> args) |
Modifier and Type | Method and Description |
---|---|
Union |
clone() |
protected Union |
clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.
|
SchemaField.Type |
getType(Schema schema)
Resolve the type for this expression.
|
int |
hashCode() |
protected boolean |
parametersEqual(FieldExpression other)
Returns
true if other 's parameters are the same as this . |
protected void |
toString(StringBuilder buffer,
FieldExpression.StringMode mode)
Writes the string representation of this field expression to
buffer . |
equalsIgnoreAlias, getArgument, getArgumentCount, getArguments, hasChildren, isConstant, rewrite, rewriteChildren, setArguments
as, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, getFieldName, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toString
public Union(FieldExpression... args)
public Union(List<? extends FieldExpression> args)
public Union(FieldExpression[] args, String alias)
public SchemaField.Type getType(Schema schema)
getType
in class FieldExpression
protected void toString(StringBuilder buffer, FieldExpression.StringMode mode)
buffer
.
NOTE: the alias will not be written to buffer by this function.
toString
in class FieldExpression
protected boolean parametersEqual(FieldExpression other)
true
if other
's parameters are the same as this
.parametersEqual
in class MultiaryFieldExpression
public int hashCode()
hashCode
in class MultiaryFieldExpression
public Union clone()
clone
in class FieldExpression
protected Union clone(FieldExpression... x)
clone
in class MultiaryFieldExpression
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.