Class MaxProjectionExpression

java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.MaxProjectionExpression
All Implemented Interfaces:
Expression, Serializable

public class MaxProjectionExpression extends ExpressionBase
Maximum of the (distinct) values returned by an expression.
See Also:
  • Constructor Details

    • MaxProjectionExpression

      public MaxProjectionExpression()
      Ctor.
    • MaxProjectionExpression

      public MaxProjectionExpression(boolean isDistinct)
      Ctor - for use to create an expression tree, without inner expression
      Parameters:
      isDistinct - true if distinct
    • MaxProjectionExpression

      public MaxProjectionExpression(boolean isDistinct, boolean isEver)
      Ctor - for use to create an expression tree, without inner expression
      Parameters:
      isDistinct - true if distinct
      isEver - indicator max-ever
    • MaxProjectionExpression

      public MaxProjectionExpression(Expression expression, boolean isDistinct)
      Ctor - adds the expression to project.
      Parameters:
      expression - returning values to project
      isDistinct - true if distinct
  • Method Details

    • getPrecedence

      public ExpressionPrecedenceEnum getPrecedence()
      Description copied from interface: Expression
      Returns precedence.
      Returns:
      precedence
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer)
      Description copied from class: ExpressionBase
      Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
      Specified by:
      toPrecedenceFreeEPL in class ExpressionBase
      Parameters:
      writer - is the output to use
    • isDistinct

      public boolean isDistinct()
      Returns true if the projection considers distinct values only.
      Returns:
      true if distinct
    • getDistinct

      public boolean getDistinct()
      Returns true if the projection considers distinct values only.
      Returns:
      true if distinct
    • setDistinct

      public void setDistinct(boolean distinct)
      Set the distinct flag indicating the projection considers distinct values only.
      Parameters:
      distinct - true for distinct, false for not distinct
    • isEver

      public boolean isEver()
      Returns true for max-ever
      Returns:
      indicator for "ever"
    • setEver

      public void setEver(boolean ever)
      Set to true for max-ever
      Parameters:
      ever - indicator for "ever"