Class PlugInProjectionExpression

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

public class PlugInProjectionExpression extends ExpressionBase
Represents a plug-in aggregation function.
See Also:
  • Constructor Details

    • PlugInProjectionExpression

      public PlugInProjectionExpression()
      Ctor.
    • PlugInProjectionExpression

      public PlugInProjectionExpression(String functionName, boolean isDistinct)
      Ctor.
      Parameters:
      functionName - the name of the function
      isDistinct - true for distinct
    • PlugInProjectionExpression

      public PlugInProjectionExpression(String functionName, boolean isDistinct, Expression... moreExpressions)
      Ctor.
      Parameters:
      functionName - the name of the function
      isDistinct - true for distinct
      moreExpressions - provides aggregated values
  • 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
    • getFunctionName

      public String getFunctionName()
      Returns the function name.
      Returns:
      name of function
    • setFunctionName

      public void setFunctionName(String functionName)
      Sets the function name.
      Parameters:
      functionName - name of function
    • isDistinct

      public boolean isDistinct()
      Returns true for distinct.
      Returns:
      boolean indicating distinct or not
    • setDistinct

      public void setDistinct(boolean distinct)
      Set to true for distinct.
      Parameters:
      distinct - indicating distinct or not