public abstract class UnaryFieldExpression extends FieldExpression
FieldExpression
that takes a single FieldExpression
as an argument.FieldExpression.StringMode
Modifier and Type | Field and Description |
---|---|
protected FieldExpression |
expression
The expression that is the argument to this expression.
|
alias, EMPTY_ARRAY
Constructor and Description |
---|
UnaryFieldExpression()
Construct a new UnaryFieldExpression using the default alias.
|
UnaryFieldExpression(FieldExpression argument)
Construct a new UnaryFieldExpression.
|
UnaryFieldExpression(FieldExpression argument,
String alias)
Construct a new UnaryFieldExpression.
|
UnaryFieldExpression(String alias)
Construct a new UnaryFieldExpression with an
alias . |
Modifier and Type | Method and Description |
---|---|
FieldExpression |
clone() |
protected FieldExpression |
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.
|
boolean |
equalsIgnoreAlias(FieldExpression other)
Returns
true if other is the same as this , with the exception of alias. |
FieldExpression |
getExpression()
Get the expression to apply the aggregation function to.
|
String |
getFieldName()
Get the field name for this expression.
|
boolean |
hasChildren()
Returns
true if this field expression has any sub FieldExpressions. |
int |
hashCode() |
boolean |
isConstant()
Returns
true if this field expression evaluates to a constant value. |
protected abstract boolean |
parametersEqual(FieldExpression other)
Returns
true if other 's parameters are the same as this . |
void |
rewrite(QueryHandler handler,
boolean recursive)
Rewrite any query objects in this FieldExpression using
handler . |
FieldExpression |
rewriteChildren(FieldExpressionHandler handler)
Traverse this FieldExpression using
handler to visit/rewrite direct child elements if this expression. |
void |
setExpression(FieldExpression expression)
Set the expression to apply the aggregation function to.
|
as, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, getType, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toString, toString
protected FieldExpression expression
public UnaryFieldExpression()
public UnaryFieldExpression(String alias)
alias
.public UnaryFieldExpression(FieldExpression argument)
public UnaryFieldExpression(FieldExpression argument, String alias)
public boolean isConstant()
true
if this field expression evaluates to a constant value.isConstant
in class FieldExpression
public FieldExpression getExpression()
public void setExpression(FieldExpression expression)
public String getFieldName()
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.
getFieldName
in class FieldExpression
public boolean hasChildren()
true
if this field expression has any sub FieldExpressions.hasChildren
in class FieldExpression
public void rewrite(QueryHandler handler, boolean recursive)
handler
.rewrite
in class FieldExpression
public FieldExpression rewriteChildren(FieldExpressionHandler handler)
handler
to visit/rewrite direct child elements if this expression.
NOTE: this method traverses direct child expressions (if any) only.
rewriteChildren
in class FieldExpression
public final boolean equalsIgnoreAlias(FieldExpression other)
true
if other
is the same as this
, with the exception of alias.equalsIgnoreAlias
in class FieldExpression
protected abstract boolean parametersEqual(FieldExpression other)
true
if other
's parameters are the same as this
.public int hashCode()
hashCode
in class FieldExpression
public FieldExpression clone()
clone
in class FieldExpression
protected FieldExpression clone(FieldExpression e)
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.