Package com.attivio.sdk.search.fields
Class AggregateExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.AggregateExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class AggregateExpression extends UnaryFieldExpression
Expressions for transforming a set of values produced by an underlayinngFieldExpression.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregateExpression.MethodAggregation method available.-
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 AggregateExpression(AggregateExpression.Method method, FieldExpression expression)Construct a new AggregateExpression to apply to aFieldExpression.AggregateExpression(AggregateExpression.Method method, java.lang.String fieldName)Construct a new AggregateExpression to apply to a field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateExpressionclone()protected AggregateExpressionclone(FieldExpression e)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)AggregateExpression.MethodgetMethod()Get the aggregatation method to use.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.-
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
-
AggregateExpression
public AggregateExpression(AggregateExpression.Method method, java.lang.String fieldName)
Construct a new AggregateExpression to apply to a field.
-
AggregateExpression
public AggregateExpression(AggregateExpression.Method method, FieldExpression expression)
Construct a new AggregateExpression to apply to aFieldExpression.
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Overrides:
isConstantin classUnaryFieldExpression
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getMethod
public AggregateExpression.Method getMethod()
Get the aggregatation method to use.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classUnaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classUnaryFieldExpression
-
clone
public AggregateExpression clone()
- Overrides:
clonein classUnaryFieldExpression
-
clone
protected AggregateExpression clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clonein classUnaryFieldExpression
-
-