Class Expressions
- All Implemented Interfaces:
Serializable
Expression
instances.
Provides quick-access methods to create all possible expressions and provides typical parameter lists to each.
Note that only the typical parameter lists are provided and expressions can allow adding additional parameters.
Many expressions, for example logical AND and OR (conjunction and disjunction), allow adding an unlimited number of additional sub-expressions to an expression. For those expressions there are additional add methods provided.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Conjunction
and()
Logical AND conjunction.static Conjunction
and
(Expression first, Expression second, Expression... expressions) Logical AND conjunction.static ArrayExpression
array()
Array expression, representing the syntax of "{1, 2, 3}" returning an integer array of 3 elements valued 1, 2, 3.static AvedevProjectionExpression
avedev
(Expression expression) Mean deviation aggregation function.static AvedevProjectionExpression
Mean deviation aggregation function.static AvedevProjectionExpression
avedevDistinct
(Expression expression) Mean deviation function considering distinct values only.static AvedevProjectionExpression
avedevDistinct
(String propertyName) Mean deviation function considering distinct values only.static AvgProjectionExpression
avg
(Expression expression) Average aggregation function.static AvgProjectionExpression
Average aggregation function.static AvgProjectionExpression
avgDistinct
(Expression expression) Average aggregation function considering distinct values only.static AvgProjectionExpression
avgDistinct
(String propertyName) Average aggregation function considering distinct values only.static BetweenExpression
between
(Expression datapoint, Expression lowBoundary, Expression highBoundary) Between.static BetweenExpression
Between.static BetweenExpression
betweenProperty
(String property, String lowBoundaryProperty, String highBoundaryProperty) Between.static BitwiseOpExpression
Bitwise (binary) AND.static BitwiseOpExpression
binaryOr()
Bitwise (binary) OR.static BitwiseOpExpression
Bitwise (binary) XOR.static CaseSwitchExpression
caseSwitch
(Expression valueToSwitchOn) Case-switch expresssion.static CaseSwitchExpression
caseSwitch
(String propertyName) Case-switch expresssion.static CaseWhenThenExpression
Case-when-then expression.static CastExpression
cast
(Expression expression, String typeName) Cast function, casts the result on an expression to the desired type, or returns null if the type cannot be casted to the type.static CastExpression
Cast function, casts the result on an expression to the desired type, or returns null if the type cannot be casted to the type.static CoalesceExpression
coalesce
(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Coalesce.static CoalesceExpression
Coalesce.static ConcatExpression
Concatenation.static ConstantExpression
Constant.static ConstantExpression
Constant, use when the value is null.static CountProjectionExpression
count
(Expression expression) Count aggregation function.static CountProjectionExpression
Count aggregation function.static CountProjectionExpression
countDistinct
(Expression expression) Count aggregation function considering distinct values only.static CountProjectionExpression
countDistinct
(String propertyName) Count aggregation function considering distinct values only.Count aggregation function not counting values, equivalent to "count(*)".static CrontabFrequencyExpression
crontabScheduleFrequency
(int frequency) Creates a frequency cron parameter.static CrontabParameterExpression
crontabScheduleItem
(Integer parameter, ScheduleItemType type) Creates a parameter of the given type and parameterized by a number.static CrontabRangeExpression
crontabScheduleRange
(int lowerBounds, int upperBounds) Creates a range cron parameter.static CrontabParameterExpression
Creates a wildcard parameter.static CurrentTimestampExpression
Current system time supplies internal-timer provided time or the time provided by external timer events.static ArithmaticExpression
divide
(Expression left, Expression right) Division.static ArithmaticExpression
Division.static RelationalOpExpression
eq
(Expression left, Expression right) Equals between expression results.static RelationalOpExpression
Equals between a property and a constant.static RelationalOpExpression
eqProperty
(String propertyLeft, String propertyRight) Equals between properties.static PropertyExistsExpression
existsProperty
(String propertyName) Exists-function for use with dynamic properties to test property existence.static FirstProjectionExpression
first
(Expression expression) First-value (in window) aggregation function.static FirstProjectionExpression
First-value (windowed) aggregation function.firstEver
(Expression expression) First-value (ever) aggregation function.First-value (ever) aggregation function.static RelationalOpExpression
ge
(Expression left, Expression right) Greater-or-equals between expression results.static RelationalOpExpression
Greater-or-equal between a property and a constant.static RelationalOpExpression
geProperty
(String propertyLeft, String propertyRight) Greater-or-equal between properties.protected static PropertyValueExpression
getPropExpr
(String propertyName) Returns an expression returning the propertyName value for the propertyName name passed in.static RelationalOpExpression
gt
(Expression left, Expression right) Greater-then between expression results.static RelationalOpExpression
Greater-then between a property and a constant.static RelationalOpExpression
gtProperty
(String propertyLeft, String propertyRight) Greater-then between properties.static InExpression
in
(Expression value, Expression... set) In-expression that is equivalent to the syntax of "property in (value, value, ...static InExpression
In-expression that is equivalent to the syntax of "property in (value, value, ...static InstanceOfExpression
instanceOf
(Expression expression, String typeName, String... typeNames) Instance-of function, tests if the type of the return value of an expression is in a list of types.static InstanceOfExpression
instanceOf
(String propertyName, String typeName, String... typeNames) Instance-of function, tests if the type of the return value of a property is in a list of types.static RelationalOpExpression
isNotNull
(Expression expression) Not-null test.static RelationalOpExpression
Not-null test.static RelationalOpExpression
isNull
(Expression expression) Is-null test.static RelationalOpExpression
Is-null test.static LastProjectionExpression
last
(Expression expression) Lastever-value aggregation function.static LastProjectionExpression
Lastever-value aggregation function.static LastEverProjectionExpression
lastEver
(Expression expression) Lastever-value aggregation function.static LastEverProjectionExpression
Lastever-value aggregation function.static RelationalOpExpression
le
(Expression left, Expression right) Less-or-equal between expression results.static RelationalOpExpression
Less-or-equals between a property and a constant.static RelationalOpExpression
leProperty
(String propertyLeft, String propertyRight) Less-or-equal between properties.static LikeExpression
like
(Expression left, Expression right) SQL-Like.static LikeExpression
like
(Expression left, Expression right, Expression escape) SQL-Like.static LikeExpression
SQL-Like.static LikeExpression
SQL-Like.static RelationalOpExpression
lt
(Expression left, Expression right) Less-then between expression results.static RelationalOpExpression
Less-then between a property and a constant.static RelationalOpExpression
ltProperty
(String propertyLeft, String propertyRight) Less-then between properties.static MaxProjectionExpression
max
(Expression expression) Maximum aggregation function.static MaxRowExpression
max
(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Maximum value per-row function (not aggregating).static MaxProjectionExpression
Maximum aggregation function.static MaxRowExpression
Maximum value per-row function (not aggregating).static MaxProjectionExpression
maxDistinct
(Expression expression) Maximum aggregation function considering distinct values only.static MaxProjectionExpression
maxDistinct
(String propertyName) Maximum aggregation function considering distinct values only.static MedianProjectionExpression
median
(Expression expression) Median aggregation function.static MedianProjectionExpression
Median aggregation function.static MedianProjectionExpression
medianDistinct
(Expression expression) Median aggregation function considering distinct values only.static MedianProjectionExpression
medianDistinct
(String propertyName) Median aggregation function considering distinct values only.static MinProjectionExpression
min
(Expression expression) Minimum aggregation function.static MinRowExpression
min
(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Minimum value per-row function (not aggregating).static MinProjectionExpression
Minimum aggregation function.static MinRowExpression
Minimum value per-row function (not aggregating).static MinProjectionExpression
minDistinct
(Expression expression) Minimum aggregation function considering distinct values only.static MinProjectionExpression
minDistinct
(String propertyName) Minimum aggregation function considering distinct values only.static ArithmaticExpression
minus
(Expression left, Expression right) Subtraction.static ArithmaticExpression
Subtraction.static ArithmaticExpression
modulo
(Expression left, Expression right) Modulo.static ArithmaticExpression
Modulo.static ArithmaticExpression
multiply
(Expression left, Expression right) Multiplication.static ArithmaticExpression
Multiplication.static RelationalOpExpression
neq
(Expression left, Expression right) Not-Equals between expression results.static RelationalOpExpression
Not-Equals between a property and a constant.static RelationalOpExpression
neqProperty
(String propertyLeft, String propertyRight) Not-Equals between properties.static NotExpression
not
(Expression inner) Not expression negates the sub-expression to the not which is expected to return boolean-typed values.static InExpression
notIn
(Expression value, Expression... set) Not-In-expression that is equivalent to the syntax of "property not in (value, value, ...static InExpression
Not-In-expression that is equivalent to the syntax of "property not in (value, value, ...static LikeExpression
notLike
(Expression left, Expression right) SQL-Like negated (not like).static LikeExpression
notLike
(Expression left, Expression right, Expression escape) SQL-Like negated (not like).static LikeExpression
SQL-Like negated (not like).static LikeExpression
SQL-Like negated (not like).static RegExpExpression
notRegexp
(Expression left, Expression right) Regular expression negated (not regexp).static RegExpExpression
notRegexp
(Expression left, Expression right, String escape) Regular expression negated (not regexp).static RegExpExpression
Regular expression negated (not regexp).static RegExpExpression
Regular expression negated (not regexp).static Disjunction
or()
Logical OR disjunction.static Disjunction
or
(Expression first, Expression second, Expression... expressions) Logical OR disjunction.static PlugInProjectionExpression
plugInAggregation
(String functionName, Expression... moreExpressions) Plug-in aggregation function.static ArithmaticExpression
plus
(Expression left, Expression right) Addition.static ArithmaticExpression
Addition.static PreviousExpression
Previous function.static PreviousExpression
previous
(Expression expression, String property) Previous function.static PreviousExpression
previousCount
(String property) Previous count function.static PreviousExpression
previousTail
(int index, String property) Previous tail function.static PreviousExpression
previousTail
(Expression expression, String property) Previous tail function.static PreviousExpression
previousWindow
(String property) Previous window function.static PriorExpression
Prior function.static PropertyValueExpression
Property value.static BetweenExpression
range
(Expression datapoint, Expression lowBoundary, Expression highBoundary, boolean isLowIncluded, boolean isHighIncluded) Between (or range).static RegExpExpression
regexp
(Expression left, Expression right) Regular expression.static RegExpExpression
regexp
(Expression left, Expression right, String escape) Regular expression.static RegExpExpression
Regular expression.static RegExpExpression
Regular expression.static StaticMethodExpression
staticMethod
(String className, String method, Expression... parameters) Static method invocation.static StaticMethodExpression
staticMethod
(String className, String method, Object... parameters) Static method invocation.static StddevProjectionExpression
stddev
(Expression expression) Standard deviation aggregation function.static StddevProjectionExpression
Standard deviation aggregation function.static StddevProjectionExpression
stddevDistinct
(Expression expression) Standard deviation function considering distinct values only.static StddevProjectionExpression
stddevDistinct
(String propertyName) Standard deviation function considering distinct values only.static SubqueryExpression
subquery
(EPStatementObjectModel model) Subquery.static SubqueryExistsExpression
Subquery with exists-clause, represents the syntax of "select * from ...static SubqueryInExpression
subqueryIn
(Expression expression, EPStatementObjectModel model) Subquery with in-clause, represents the syntax of "value in (select ...static SubqueryInExpression
subqueryIn
(String property, EPStatementObjectModel model) Subquery with in-clause, represents the syntax of "value in (select ...static SubqueryInExpression
subqueryNotIn
(Expression expression, EPStatementObjectModel model) Subquery with not-in-clause, represents the syntax of "value not in (select ...static SubqueryInExpression
subqueryNotIn
(String property, EPStatementObjectModel model) Subquery with not-in-clause, represents the syntax of "value not in (select ...static SumProjectionExpression
sum
(Expression expression) Sum aggregation function.static SumProjectionExpression
Sum aggregation function.static SumProjectionExpression
sumDistinct
(Expression expression) Sum aggregation function considering distinct values only.static SumProjectionExpression
sumDistinct
(String propertyName) Sum aggregation function considering distinct values only.static TimePeriodExpression
Returns a time period expression for the specified parts.static TimePeriodExpression
Returns a time period expression for the specified parts.protected static List<PropertyValueExpression>
toPropertyExpressions
(String... properties) Returns a list of expressions returning property values for the property names passed in.static TypeOfExpression
typeOf
(Expression expression) Type-of function, returns the event type name or result type as a string of a stream name, property or expression.static TypeOfExpression
Type-of function, returns the event type name or result type as a string of a stream name, property or expression.
-
Constructor Details
-
Expressions
public Expressions()
-
-
Method Details
-
currentTimestamp
Current system time supplies internal-timer provided time or the time provided by external timer events.- Returns:
- expression
-
existsProperty
Exists-function for use with dynamic properties to test property existence.- Parameters:
propertyName
- name of the property to test whether it exists or not- Returns:
- expression
-
cast
Cast function, casts the result on an expression to the desired type, or returns null if the type cannot be casted to the type.The list of types can include fully-qualified class names plus any of the Java primitive type names: byte, char, short, int, long, float, double, boolean. Alternatively to "java.lang.String" the simple "string" is also permitted.
Type checks include all superclasses and interfaces of the value returned by the expression.
- Parameters:
expression
- returns the value to casttypeName
- is type to cast to- Returns:
- expression
-
cast
Cast function, casts the result on an expression to the desired type, or returns null if the type cannot be casted to the type.The list of types can include fully-qualified class names plus any of the Java primitive type names: byte, char, short, int, long, float, double, boolean. Alternatively to "java.lang.String" the simple "string" is also permitted.
Type checks include all superclasses and interfaces of the value returned by the expression.
- Parameters:
propertyName
- name of the property supplying the value to casttypeName
- is type to cast to- Returns:
- expression
-
instanceOf
public static InstanceOfExpression instanceOf(Expression expression, String typeName, String... typeNames) Instance-of function, tests if the type of the return value of an expression is in a list of types.The list of types can include fully-qualified class names plus any of the Java primitive type names: byte, char, short, int, long, float, double, boolean. Alternatively to "java.lang.String" the simple "string" is also permitted.
Type checks include all superclasses and interfaces of the value returned by the expression.
- Parameters:
expression
- returns the value to test whether the type returned is any of the is the function nametypeName
- is one type to check fortypeNames
- is optional additional types to check for in a list- Returns:
- expression
-
instanceOf
public static InstanceOfExpression instanceOf(String propertyName, String typeName, String... typeNames) Instance-of function, tests if the type of the return value of a property is in a list of types.Useful with dynamic (unchecked) properties to check the type of property returned.
The list of types can include fully-qualified class names plus any of the Java primitive type names: byte, char, short, int, long, float, double, boolean. Alternatively to "java.lang.String" the simple "string" is also permitted.
Type checks include all superclasses and interfaces of the value returned by the expression.
- Parameters:
propertyName
- name of the property supplying the value to testtypeName
- is one type to check fortypeNames
- is optional additional types to check for in a list- Returns:
- expression
-
typeOf
Type-of function, returns the event type name or result type as a string of a stream name, property or expression.- Parameters:
expression
- to evaluate and return it's result type as a string- Returns:
- expression
-
typeOf
Type-of function, returns the event type name or result type as a string of a stream name, property or expression.- Parameters:
propertyName
- returns the property to evaluate and return its event type name or property class type- Returns:
- expression
-
plugInAggregation
public static PlugInProjectionExpression plugInAggregation(String functionName, Expression... moreExpressions) Plug-in aggregation function.- Parameters:
functionName
- is the function namemoreExpressions
- provides the values to aggregate- Returns:
- expression
-
regexp
Regular expression.- Parameters:
left
- returns the values to matchright
- returns the value to match against- Returns:
- expression
-
regexp
Regular expression.- Parameters:
left
- returns the values to matchright
- returns the value to match againstescape
- is the escape character- Returns:
- expression
-
regexp
Regular expression.- Parameters:
property
- the name of the property returning values to matchregExExpression
- a regular expression to match against- Returns:
- expression
-
regexp
Regular expression.- Parameters:
property
- the name of the property returning values to matchregExExpression
- a regular expression to match againstescape
- is the escape character- Returns:
- expression
-
notRegexp
Regular expression negated (not regexp).- Parameters:
left
- returns the values to matchright
- returns the value to match against- Returns:
- expression
-
notRegexp
Regular expression negated (not regexp).- Parameters:
left
- returns the values to matchright
- returns the value to match againstescape
- is the escape character- Returns:
- expression
-
notRegexp
Regular expression negated (not regexp).- Parameters:
property
- the name of the property returning values to matchregExExpression
- a regular expression to match against- Returns:
- expression
-
notRegexp
Regular expression negated (not regexp).- Parameters:
property
- the name of the property returning values to matchregExExpression
- a regular expression to match againstescape
- is the escape character- Returns:
- expression
-
array
Array expression, representing the syntax of "{1, 2, 3}" returning an integer array of 3 elements valued 1, 2, 3.- Returns:
- expression
-
binaryAnd
Bitwise (binary) AND.- Returns:
- expression
-
binaryOr
Bitwise (binary) OR.- Returns:
- expression
-
binaryXor
Bitwise (binary) XOR.- Returns:
- expression
-
min
public static MinRowExpression min(String propertyOne, String propertyTwo, String... moreProperties) Minimum value per-row function (not aggregating).- Parameters:
propertyOne
- the name of a first property to comparepropertyTwo
- the name of a second property to comparemoreProperties
- optional additional properties to compare- Returns:
- expression
-
min
public static MinRowExpression min(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Minimum value per-row function (not aggregating).- Parameters:
exprOne
- returns the first value to compareexprTwo
- returns the second value to comparemoreExpressions
- optional additional values to compare- Returns:
- expression
-
max
public static MaxRowExpression max(String propertyOne, String propertyTwo, String... moreProperties) Maximum value per-row function (not aggregating).- Parameters:
propertyOne
- the name of a first property to comparepropertyTwo
- the name of a second property to comparemoreProperties
- optional additional properties to compare- Returns:
- expression
-
max
public static MaxRowExpression max(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Maximum value per-row function (not aggregating).- Parameters:
exprOne
- returns the first value to compareexprTwo
- returns the second value to comparemoreExpressions
- optional additional values to compare- Returns:
- expression
-
coalesce
public static CoalesceExpression coalesce(String propertyOne, String propertyTwo, String... moreProperties) Coalesce.- Parameters:
propertyOne
- name of the first property returning value to coealescepropertyTwo
- name of the second property returning value to coealescemoreProperties
- name of the optional additional properties returning values to coealesce- Returns:
- expression
-
coalesce
public static CoalesceExpression coalesce(Expression exprOne, Expression exprTwo, Expression... moreExpressions) Coalesce.- Parameters:
exprOne
- returns value to coalesceexprTwo
- returns value to coalescemoreExpressions
- returning optional additional values to coalesce- Returns:
- expression
-
constant
Constant.- Parameters:
value
- is the constant value- Returns:
- expression
-
constant
Constant, use when the value is null.- Parameters:
value
- is the constant valueconstantType
- is the type of the constant- Returns:
- expression
-
caseWhenThen
Case-when-then expression.- Returns:
- expression
-
caseSwitch
Case-switch expresssion.- Parameters:
valueToSwitchOn
- provides the switch value- Returns:
- expression
-
caseSwitch
Case-switch expresssion.- Parameters:
propertyName
- the name of the property that provides the switch value- Returns:
- expression
-
in
In-expression that is equivalent to the syntax of "property in (value, value, ... value)".- Parameters:
property
- is the name of the propertyvalues
- are the constants to check against- Returns:
- expression
-
notIn
Not-In-expression that is equivalent to the syntax of "property not in (value, value, ... value)".- Parameters:
property
- is the name of the propertyvalues
- are the constants to check against- Returns:
- expression
-
in
In-expression that is equivalent to the syntax of "property in (value, value, ... value)".- Parameters:
value
- provides values to matchset
- are expressons that provide match-against values- Returns:
- expression
-
notIn
Not-In-expression that is equivalent to the syntax of "property not in (value, value, ... value)".- Parameters:
value
- provides values to matchset
- are expressons that provide match-against values- Returns:
- expression
-
not
Not expression negates the sub-expression to the not which is expected to return boolean-typed values.- Parameters:
inner
- is the sub-expression- Returns:
- expression
-
staticMethod
public static StaticMethodExpression staticMethod(String className, String method, Object... parameters) Static method invocation.- Parameters:
className
- the name of the class to invoke a method onmethod
- the name of the method to invokeparameters
- zero, one or more constants that are the parameters to the static method- Returns:
- expression
-
staticMethod
public static StaticMethodExpression staticMethod(String className, String method, Expression... parameters) Static method invocation.- Parameters:
className
- the name of the class to invoke a method onmethod
- the name of the method to invokeparameters
- zero, one or more expressions that provide parameters to the static method- Returns:
- expression
-
prior
Prior function.- Parameters:
index
- the numeric index of the prior eventproperty
- the name of the property to obtain the value for- Returns:
- expression
-
previous
Previous function.- Parameters:
expression
- provides the numeric index of the previous eventproperty
- the name of the property to obtain the value for- Returns:
- expression
-
previous
Previous function.- Parameters:
index
- the numeric index of the previous eventproperty
- the name of the property to obtain the value for- Returns:
- expression
-
previousTail
Previous tail function.- Parameters:
expression
- provides the numeric index of the previous eventproperty
- the name of the property to obtain the value for- Returns:
- expression
-
previousTail
Previous tail function.- Parameters:
index
- the numeric index of the previous eventproperty
- the name of the property to obtain the value for- Returns:
- expression
-
previousCount
Previous count function.- Parameters:
property
- provides the properties or stream name to select for the previous event- Returns:
- expression
-
previousWindow
Previous window function.- Parameters:
property
- provides the properties or stream name to select for the previous event- Returns:
- expression
-
betweenProperty
public static BetweenExpression betweenProperty(String property, String lowBoundaryProperty, String highBoundaryProperty) Between.- Parameters:
property
- the name of the property supplying data points.lowBoundaryProperty
- the name of the property supplying lower boundary.highBoundaryProperty
- the name of the property supplying upper boundary.- Returns:
- expression
-
between
Between.- Parameters:
property
- the name of the property that returns the datapoint to check rangelowBoundary
- constant indicating the lower boundaryhighBoundary
- constant indicating the upper boundary- Returns:
- expression
-
between
public static BetweenExpression between(Expression datapoint, Expression lowBoundary, Expression highBoundary) Between.- Parameters:
datapoint
- returns the datapoint to check rangelowBoundary
- returns values for the lower boundaryhighBoundary
- returns values for the upper boundary- Returns:
- expression
-
range
public static BetweenExpression range(Expression datapoint, Expression lowBoundary, Expression highBoundary, boolean isLowIncluded, boolean isHighIncluded) Between (or range).- Parameters:
datapoint
- returns the datapoint to check rangelowBoundary
- returns values for the lower boundaryhighBoundary
- returns values for the upper boundaryisLowIncluded
- true to indicate lower boundary itself is included in the rangeisHighIncluded
- true to indicate upper boundary itself is included in the range- Returns:
- expression
-
or
Logical OR disjunction. Use add methods to add expressions.- Returns:
- expression
-
or
Logical OR disjunction.- Parameters:
first
- an expression returning values to junctionsecond
- an expression returning values to junctionexpressions
- an optional list of expressions returning values to junction- Returns:
- expression
-
and
Logical AND conjunction. Use add methods to add expressions.- Returns:
- expression
-
and
Logical AND conjunction.- Parameters:
first
- an expression returning values to junctionsecond
- an expression returning values to junctionexpressions
- an optional list of expressions returning values to junction- Returns:
- expression
-
ge
Greater-or-equal between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
ge
Greater-or-equals between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
geProperty
Greater-or-equal between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
gt
Greater-then between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
gt
Greater-then between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
gtProperty
Greater-then between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
le
Less-or-equals between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
leProperty
Less-or-equal between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
le
Less-or-equal between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
lt
Less-then between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
ltProperty
Less-then between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
lt
Less-then between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
eq
Equals between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
neq
Not-Equals between a property and a constant.- Parameters:
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare- Returns:
- expression
-
eqProperty
Equals between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
neqProperty
Not-Equals between properties.- Parameters:
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values- Returns:
- expression
-
eq
Equals between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
neq
Not-Equals between expression results.- Parameters:
left
- the expression providing left hand side valuesright
- the expression providing right hand side values- Returns:
- expression
-
isNotNull
Not-null test.- Parameters:
property
- the name of the property supplying the value to check for null- Returns:
- expression
-
isNotNull
Not-null test.- Parameters:
expression
- supplies the value to check for null- Returns:
- expression
-
isNull
Is-null test.- Parameters:
property
- the name of the property supplying the value to check for null- Returns:
- expression
-
isNull
Is-null test.- Parameters:
expression
- supplies the value to check for null- Returns:
- expression
-
property
Property value.An expression that returns the value of the named property.
Nested, indexed or mapped properties follow the documented sytnax.
- Parameters:
propertyName
- is the name of the property to return the value for.- Returns:
- expression
-
like
SQL-Like.- Parameters:
propertyName
- the name of the property providing values to matchvalue
- is the string to match against- Returns:
- expression
-
like
SQL-Like.- Parameters:
left
- provides value to matchright
- provides string to match against- Returns:
- expression
-
like
SQL-Like.- Parameters:
propertyName
- the name of the property providing values to matchvalue
- is the string to match againstescape
- the escape character(s)- Returns:
- expression
-
like
SQL-Like.- Parameters:
left
- provides value to matchright
- provides string to match againstescape
- the escape character(s)- Returns:
- expression
-
notLike
SQL-Like negated (not like).- Parameters:
propertyName
- the name of the property providing values to matchvalue
- is the string to match against- Returns:
- expression
-
notLike
SQL-Like negated (not like).- Parameters:
left
- provides value to matchright
- provides string to match against- Returns:
- expression
-
notLike
SQL-Like negated (not like).- Parameters:
propertyName
- the name of the property providing values to matchvalue
- is the string to match againstescape
- the escape character(s)- Returns:
- expression
-
notLike
SQL-Like negated (not like).- Parameters:
left
- provides value to matchright
- provides string to match againstescape
- the escape character(s)- Returns:
- expression
-
avg
Average aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
avg
Average aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
avgDistinct
Average aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
avgDistinct
Average aggregation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
median
Median aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
median
Median aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
medianDistinct
Median aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
medianDistinct
Median aggregation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
stddev
Standard deviation aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
stddev
Standard deviation aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
stddevDistinct
Standard deviation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
stddevDistinct
Standard deviation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
avedev
Mean deviation aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
lastEver
Lastever-value aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
last
Lastever-value aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
lastEver
Lastever-value aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
last
Lastever-value aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
first
First-value (windowed) aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
firstEver
First-value (ever) aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
first
First-value (in window) aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
firstEver
First-value (ever) aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
avedev
Mean deviation aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
avedevDistinct
Mean deviation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
avedevDistinct
Mean deviation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
sum
Sum aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
sum
Sum aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
sumDistinct
Sum aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
sumDistinct
Sum aggregation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
countStar
Count aggregation function not counting values, equivalent to "count(*)".- Returns:
- expression
-
count
Count aggregation function.- Parameters:
propertyName
- name of the property providing the values to count.- Returns:
- expression
-
count
Count aggregation function.- Parameters:
expression
- provides the values to count.- Returns:
- expression
-
countDistinct
Count aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to count.- Returns:
- expression
-
countDistinct
Count aggregation function considering distinct values only.- Parameters:
expression
- provides the values to count.- Returns:
- expression
-
min
Minimum aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
min
Minimum aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
minDistinct
Minimum aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
minDistinct
Minimum aggregation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
max
Maximum aggregation function.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
max
Maximum aggregation function.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
maxDistinct
Maximum aggregation function considering distinct values only.- Parameters:
propertyName
- name of the property providing the values to aggregate.- Returns:
- expression
-
maxDistinct
Maximum aggregation function considering distinct values only.- Parameters:
expression
- provides the values to aggregate.- Returns:
- expression
-
modulo
Modulo.- Parameters:
left
- the expression providing left hand valuesright
- the expression providing right hand values- Returns:
- expression
-
modulo
Modulo.- Parameters:
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values- Returns:
- expression
-
minus
Subtraction.- Parameters:
left
- the expression providing left hand valuesright
- the expression providing right hand values- Returns:
- expression
-
minus
Subtraction.- Parameters:
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values- Returns:
- expression
-
plus
Addition.- Parameters:
left
- the expression providing left hand valuesright
- the expression providing right hand values- Returns:
- expression
-
plus
Addition.- Parameters:
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values- Returns:
- expression
-
multiply
Multiplication.- Parameters:
left
- the expression providing left hand valuesright
- the expression providing right hand values- Returns:
- expression
-
multiply
Multiplication.- Parameters:
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values- Returns:
- expression
-
divide
Division.- Parameters:
left
- the expression providing left hand valuesright
- the expression providing right hand values- Returns:
- expression
-
divide
Division.- Parameters:
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values- Returns:
- expression
-
concat
Concatenation.- Parameters:
property
- the name of property returning values to concatenateproperties
- the names of additional properties returning values to concatenate- Returns:
- expression
-
subquery
Subquery.- Parameters:
model
- is the object model of the lookup- Returns:
- expression
-
subqueryIn
Subquery with in-clause, represents the syntax of "value in (select ... from ...)".- Parameters:
property
- is the name of the property that returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup- Returns:
- expression
-
subqueryNotIn
Subquery with not-in-clause, represents the syntax of "value not in (select ... from ...)".- Parameters:
property
- is the name of the property that returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup- Returns:
- expression
-
subqueryExists
Subquery with exists-clause, represents the syntax of "select * from ... where exists (select ... from ...)".- Parameters:
model
- is the object model of the lookup- Returns:
- expression
-
subqueryIn
Subquery with in-clause, represents the syntax of "value in (select ... from ...)".- Parameters:
expression
- returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup- Returns:
- expression
-
subqueryNotIn
public static SubqueryInExpression subqueryNotIn(Expression expression, EPStatementObjectModel model) Subquery with not-in-clause, represents the syntax of "value not in (select ... from ...)".- Parameters:
expression
- returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup- Returns:
- expression
-
timePeriod
public static TimePeriodExpression timePeriod(Double days, Double hours, Double minutes, Double seconds, Double milliseconds) Returns a time period expression for the specified parts.Each part can be a null value in which case the part is left out.
- Parameters:
days
- day parthours
- hour partminutes
- minute partseconds
- seconds partmilliseconds
- milliseconds part- Returns:
- time period expression
-
timePeriod
public static TimePeriodExpression timePeriod(Object days, Object hours, Object minutes, Object seconds, Object milliseconds) Returns a time period expression for the specified parts.Each part can be a null value in which case the part is left out.
Each object value may be a String value for an event property, or a number for a constant.
- Parameters:
days
- day parthours
- hour partminutes
- minute partseconds
- seconds partmilliseconds
- milliseconds part- Returns:
- time period expression
-
crontabScheduleWildcard
Creates a wildcard parameter.- Returns:
- parameter
-
crontabScheduleItem
public static CrontabParameterExpression crontabScheduleItem(Integer parameter, ScheduleItemType type) Creates a parameter of the given type and parameterized by a number.- Parameters:
parameter
- the constant parameter for the typetype
- the type of crontab parameter- Returns:
- crontab parameter
-
crontabScheduleFrequency
Creates a frequency cron parameter.- Parameters:
frequency
- the constant for the frequency- Returns:
- cron parameter
-
crontabScheduleRange
Creates a range cron parameter.- Parameters:
lowerBounds
- the lower boundsupperBounds
- the upper bounds- Returns:
- crontab parameter
-
toPropertyExpressions
Returns a list of expressions returning property values for the property names passed in.- Parameters:
properties
- is a list of property names- Returns:
- list of property value expressions
-
getPropExpr
Returns an expression returning the propertyName value for the propertyName name passed in.- Parameters:
propertyName
- the name of the property returning property values- Returns:
- expression
-