Class ConfigurationCompilerExpression

java.lang.Object
com.espertech.esper.common.client.configuration.compiler.ConfigurationCompilerExpression
All Implemented Interfaces:
Serializable

public class ConfigurationCompilerExpression extends Object implements Serializable
Expression evaluation settings in the runtime are for results of expressions.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the math context for big decimal operations, or null to leave the math context undefined.
    boolean
    Returns false (default) when division by zero returns Double.Infinity.
    boolean
    Returns true to indicate that duck typing is enable for the specific syntax where it is allowed (check the documentation).
    boolean
    Enables or disables non-SQL standard builtin aggregation functions.
    boolean
    Returns false (the default) for integer division returning double values.
    boolean
    By default true, indicates that user-defined functions cache return results if the parameter set is empty or has constant-only return values.
    void
    setDivisionByZeroReturnsNull(boolean divisionByZeroReturnsNull)
    Set to false (default) to have division by zero return Double.Infinity.
    void
    setDuckTyping(boolean duckTyping)
    Set to true to indicate that duck typing is enable for the specific syntax where it is allowed (check the documentation).
    void
    setExtendedAggregation(boolean extendedAggregation)
    Enables or disables non-SQL standard builtin aggregation functions.
    void
    setIntegerDivision(boolean integerDivision)
    Set to false (default) for integer division returning double values.
    void
    Sets the math context for big decimal operations, or null to leave the math context undefined.
    void
    setUdfCache(boolean udfCache)
    Set to true (the default) to indicate that user-defined functions cache return results if the parameter set is empty or has constant-only return values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurationCompilerExpression

      public ConfigurationCompilerExpression()
      Ctor.
  • Method Details

    • isIntegerDivision

      public boolean isIntegerDivision()
      Returns false (the default) for integer division returning double values.

      Returns true to signal that Java-convention integer division semantics are used for divisions, whereas the division between two non-FP numbers returns only the whole number part of the result and any fractional part is dropped.

      Returns:
      indicator
    • setIntegerDivision

      public void setIntegerDivision(boolean integerDivision)
      Set to false (default) for integer division returning double values. Set to true to signal the Java-convention integer division semantics are used for divisions, whereas the division between two non-FP numbers returns only the whole number part of the result and any fractional part is dropped.
      Parameters:
      integerDivision - true for integer division returning integer, false (default) for
    • isDivisionByZeroReturnsNull

      public boolean isDivisionByZeroReturnsNull()
      Returns false (default) when division by zero returns Double.Infinity. Returns true when division by zero return null.

      If integer devision is set, then division by zero for non-FP operands also returns null.

      Returns:
      indicator for division-by-zero results
    • setDivisionByZeroReturnsNull

      public void setDivisionByZeroReturnsNull(boolean divisionByZeroReturnsNull)
      Set to false (default) to have division by zero return Double.Infinity. Set to true to have division by zero return null.

      If integer division is set, then division by zero for non-FP operands also returns null.

      Parameters:
      divisionByZeroReturnsNull - indicator for division-by-zero results
    • isUdfCache

      public boolean isUdfCache()
      By default true, indicates that user-defined functions cache return results if the parameter set is empty or has constant-only return values.
      Returns:
      cache flag
    • setUdfCache

      public void setUdfCache(boolean udfCache)
      Set to true (the default) to indicate that user-defined functions cache return results if the parameter set is empty or has constant-only return values.
      Parameters:
      udfCache - cache flag
    • isExtendedAggregation

      public boolean isExtendedAggregation()
      Enables or disables non-SQL standard builtin aggregation functions.
      Returns:
      indicator
    • setExtendedAggregation

      public void setExtendedAggregation(boolean extendedAggregation)
      Enables or disables non-SQL standard builtin aggregation functions.
      Parameters:
      extendedAggregation - indicator
    • isDuckTyping

      public boolean isDuckTyping()
      Returns true to indicate that duck typing is enable for the specific syntax where it is allowed (check the documentation).
      Returns:
      indicator
    • setDuckTyping

      public void setDuckTyping(boolean duckTyping)
      Set to true to indicate that duck typing is enable for the specific syntax where it is allowed (check the documentation).
      Parameters:
      duckTyping - indicator
    • getMathContext

      public MathContext getMathContext()
      Returns the math context for big decimal operations, or null to leave the math context undefined.
      Returns:
      math context or null
    • setMathContext

      public void setMathContext(MathContext mathContext)
      Sets the math context for big decimal operations, or null to leave the math context undefined.
      Parameters:
      mathContext - math context or null