com.espertech.esper.client
Class ConfigurationEngineDefaults.Expression

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationEngineDefaults.Expression
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ConfigurationEngineDefaults

public static class ConfigurationEngineDefaults.Expression
extends java.lang.Object
implements java.io.Serializable

Expression evaluation settings in the engine are for results of expressions.

See Also:
Serialized Form

Constructor Summary
ConfigurationEngineDefaults.Expression()
          Ctor.
 
Method Summary
 java.math.MathContext getMathContext()
          Returns the math context for big decimal operations, or null to leave the math context undefined.
 boolean isDivisionByZeroReturnsNull()
          Returns false (default) when division by zero returns Double.Infinity.
 boolean isDuckTyping()
          Returns true to indicate that duck typing is enable for the specific syntax where it is allowed (check the documentation).
 boolean isExtendedAggregation()
          Enables or disables non-SQL standard builtin aggregation functions.
 boolean isIntegerDivision()
          Returns false (the default) for integer division returning double values.
 boolean isSelfSubselectPreeval()
          Set to true (the default) to indicate that sub-selects within a statement are updated first when a new event arrives.
 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.
 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 setMathContext(java.math.MathContext mathContext)
          Sets the math context for big decimal operations, or null to leave the math context undefined.
 void setSelfSubselectPreeval(boolean selfSubselectPreeval)
          Set to true (the default) to indicate that sub-selects within a statement are updated first when a new event arrives.
 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 Detail

ConfigurationEngineDefaults.Expression

public ConfigurationEngineDefaults.Expression()
Ctor.

Method Detail

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 devision 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

isSelfSubselectPreeval

public boolean isSelfSubselectPreeval()
Set to true (the default) to indicate that sub-selects within a statement are updated first when a new event arrives. This is only relevant for statements in which both subselects and the from-clause may react to the same exact event.

Returns:
indicator whether to evaluate sub-selects first or last on new event arrival

setSelfSubselectPreeval

public void setSelfSubselectPreeval(boolean selfSubselectPreeval)
Set to true (the default) to indicate that sub-selects within a statement are updated first when a new event arrives. This is only relevant for statements in which both subselects and the from-clause may react to the same exact event.

Parameters:
selfSubselectPreeval - indicator whether to evaluate sub-selects first or last on new event arrival

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 java.math.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(java.math.MathContext mathContext)
Sets the math context for big decimal operations, or null to leave the math context undefined.

Parameters:
mathContext - math context or null

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com