Package com.attivio.sdk.search.fields
Class UnaryFieldExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
AggregateExpression,Cast,ClauseContext,Collate,DateExtract,DateFormat,Freshness,FuzzyMatch,GeoBoost,GeoDistance,LowerCase,MultiValueJoin,RegexMatch,StandardScore,StringLength,SubString,Teaser,TitleCase,Trim,UnaryMathExpression,UpperCase,WildcardMatch
public abstract class UnaryFieldExpression extends FieldExpression
AbstractFieldExpressionthat takes a singleFieldExpressionas an argument.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldExpressionexpressionThe expression that is the argument to this expression.-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description UnaryFieldExpression()UnaryFieldExpression(FieldExpression argument)Construct a new UnaryFieldExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldExpressionclone()protected FieldExpressionclone(FieldExpression e)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)FieldExpressionforEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)Applieshandlerfor eachFieldExpressionargument.FieldExpressiongetExpression()Get the expression to apply the aggregation function to.java.lang.StringgetFieldName()Get the field name for this expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidrewrite(QueryHandler handler, boolean recursive)Rewrite any query objects in this FieldExpression usinghandler.voidsetExpression(FieldExpression expression)Set the expression to apply the aggregation function to.-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getType, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, toString, valueOf
-
-
-
-
Field Detail
-
expression
protected FieldExpression expression
The expression that is the argument to this expression.
-
-
Constructor Detail
-
UnaryFieldExpression
public UnaryFieldExpression()
-
UnaryFieldExpression
public UnaryFieldExpression(FieldExpression argument)
Construct a new UnaryFieldExpression.
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
getExpression
public FieldExpression getExpression()
Get the expression to apply the aggregation function to.
-
setExpression
public void setExpression(FieldExpression expression)
Set the expression to apply the aggregation function to.
-
getFieldName
public java.lang.String getFieldName()
Get the field name for this expression.This is used as a hint to the search engine to tie back to the schema. null may be returned if this expression contains no field. If this expression is composed of many fields, this can be either the "primary" field for the expression, or null.
- Overrides:
getFieldNamein classFieldExpression
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler.- Overrides:
rewritein classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachFieldin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
clone
public FieldExpression clone()
- Overrides:
clonein classFieldExpression
-
clone
protected FieldExpression clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.
-
-