Class UnaryFieldExpression

    • 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()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • 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:
        getFieldName in class FieldExpression
      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • rewrite

        public void rewrite​(QueryHandler handler,
                            boolean recursive)
        Rewrite any query objects in this FieldExpression using handler.
        Overrides:
        rewrite in class FieldExpression
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object