Package com.attivio.sdk.search.fields
Class MultiValueJoin
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.MultiValueJoin
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class MultiValueJoin extends UnaryFieldExpression
FieldExpression that joins all values of a multi value field on a delimiter.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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.UnaryFieldExpression
expression
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MultiValueJoin(FieldExpression expression, java.lang.String delimiter)
MultiValueJoin(java.lang.String fieldName, java.lang.String delimiter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiValueJoin
clone()
protected MultiValueJoin
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
java.lang.String
getDelimiter()
Get the delimiter that will join multiple values.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
boolean
isConstant()
Returnstrue
if this field expression evaluates to a constant value.void
setDelimiter(java.lang.String value)
Set the delimiter that will join mulitple values.protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static MultiValueJoin
valueOf(StringParser reader)
-
Methods inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
forEachField, getExpression, getFieldName, hasChildren, rewrite, setExpression
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
MultiValueJoin
public MultiValueJoin(java.lang.String fieldName, java.lang.String delimiter)
-
MultiValueJoin
public MultiValueJoin(FieldExpression expression, java.lang.String delimiter)
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrue
if this field expression evaluates to a constant value.- Overrides:
isConstant
in classUnaryFieldExpression
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
getDelimiter
public java.lang.String getDelimiter()
Get the delimiter that will join multiple values.
-
setDelimiter
public void setDelimiter(java.lang.String value)
Set the delimiter that will join mulitple values.
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classUnaryFieldExpression
-
clone
public MultiValueJoin clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected MultiValueJoin clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
valueOf
public static MultiValueJoin valueOf(StringParser reader)
-
-