|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.Expressions
public class Expressions
Convenience factory for creating 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.
Constructor Summary | |
---|---|
Expressions()
|
Method Summary | |
---|---|
static 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 |
avedev(java.lang.String propertyName)
Mean deviation aggregation function. |
static AvedevProjectionExpression |
avedevDistinct(Expression expression)
Mean deviation function considering distinct values only. |
static AvedevProjectionExpression |
avedevDistinct(java.lang.String propertyName)
Mean deviation function considering distinct values only. |
static AvgProjectionExpression |
avg(Expression expression)
Average aggregation function. |
static AvgProjectionExpression |
avg(java.lang.String propertyName)
Average aggregation function. |
static AvgProjectionExpression |
avgDistinct(Expression expression)
Average aggregation function considering distinct values only. |
static AvgProjectionExpression |
avgDistinct(java.lang.String propertyName)
Average aggregation function considering distinct values only. |
static BetweenExpression |
between(Expression datapoint,
Expression lowBoundary,
Expression highBoundary)
Between. |
static BetweenExpression |
between(java.lang.String property,
java.lang.Object lowBoundary,
java.lang.Object highBoundary)
Between. |
static BetweenExpression |
betweenProperty(java.lang.String property,
java.lang.String lowBoundaryProperty,
java.lang.String highBoundaryProperty)
Between. |
static BitwiseOpExpression |
binaryAnd()
Bitwise (binary) AND. |
static BitwiseOpExpression |
binaryOr()
Bitwise (binary) OR. |
static BitwiseOpExpression |
binaryXor()
Bitwise (binary) XOR. |
static CaseSwitchExpression |
caseSwitch(Expression valueToSwitchOn)
Case-switch expresssion. |
static CaseSwitchExpression |
caseSwitch(java.lang.String propertyName)
Case-switch expresssion. |
static CaseWhenThenExpression |
caseWhenThen()
Case-when-then expression. |
static CastExpression |
cast(Expression expression,
java.lang.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(java.lang.String propertyName,
java.lang.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 CoalesceExpression |
coalesce(Expression exprOne,
Expression exprTwo,
Expression... moreExpressions)
Coalesce. |
static CoalesceExpression |
coalesce(java.lang.String propertyOne,
java.lang.String propertyTwo,
java.lang.String... moreProperties)
Coalesce. |
static ConcatExpression |
concat(java.lang.String property,
java.lang.String... properties)
Concatenation. |
static ConstantExpression |
constant(java.lang.Object value)
Constant. |
static ConstantExpression |
constant(java.lang.Object value,
java.lang.Class constantType)
Constant, use when the value is null. |
static CountProjectionExpression |
count(Expression expression)
Count aggregation function. |
static CountProjectionExpression |
count(java.lang.String propertyName)
Count aggregation function. |
static CountProjectionExpression |
countDistinct(Expression expression)
Count aggregation function considering distinct values only. |
static CountProjectionExpression |
countDistinct(java.lang.String propertyName)
Count aggregation function considering distinct values only. |
static CountStarProjectionExpression |
countStar()
Count aggregation function not counting values, equivalent to "count(*)". |
static CrontabFrequencyExpression |
crontabScheduleFrequency(int frequency)
Creates a frequency cron parameter. |
static CrontabParameterExpression |
crontabScheduleItem(java.lang.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 |
crontabScheduleWildcard()
Creates a wildcard parameter. |
static CurrentTimestampExpression |
currentTimestamp()
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 |
divide(java.lang.String propertyLeft,
java.lang.String propertyRight)
Division. |
static RelationalOpExpression |
eq(Expression left,
Expression right)
Equals between expression results. |
static RelationalOpExpression |
eq(java.lang.String propertyName,
java.lang.Object value)
Equals between a property and a constant. |
static RelationalOpExpression |
eqProperty(java.lang.String propertyLeft,
java.lang.String propertyRight)
Equals between properties. |
static PropertyExistsExpression |
existsProperty(java.lang.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(java.lang.String propertyName)
First-value (windowed) aggregation function. |
static FirstEverProjectionExpression |
firstEver(Expression expression)
First-value (ever) aggregation function. |
static FirstEverProjectionExpression |
firstEver(java.lang.String propertyName)
First-value (ever) aggregation function. |
static RelationalOpExpression |
ge(Expression left,
Expression right)
Greater-or-equals between expression results. |
static RelationalOpExpression |
ge(java.lang.String propertyName,
java.lang.Object value)
Greater-or-equal between a property and a constant. |
static RelationalOpExpression |
geProperty(java.lang.String propertyLeft,
java.lang.String propertyRight)
Greater-or-equal between properties. |
protected static PropertyValueExpression |
getPropExpr(java.lang.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 |
gt(java.lang.String propertyName,
java.lang.Object value)
Greater-then between a property and a constant. |
static RelationalOpExpression |
gtProperty(java.lang.String propertyLeft,
java.lang.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(java.lang.String property,
java.lang.Object... values)
In-expression that is equivalent to the syntax of "property in (value, value, ... |
static InstanceOfExpression |
instanceOf(Expression expression,
java.lang.String typeName,
java.lang.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(java.lang.String propertyName,
java.lang.String typeName,
java.lang.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 |
isNotNull(java.lang.String property)
Not-null test. |
static RelationalOpExpression |
isNull(Expression expression)
Is-null test. |
static RelationalOpExpression |
isNull(java.lang.String property)
Is-null test. |
static LastProjectionExpression |
last(Expression expression)
Lastever-value aggregation function. |
static LastProjectionExpression |
last(java.lang.String propertyName)
Lastever-value aggregation function. |
static LastEverProjectionExpression |
lastEver(Expression expression)
Lastever-value aggregation function. |
static LastEverProjectionExpression |
lastEver(java.lang.String propertyName)
Lastever-value aggregation function. |
static RelationalOpExpression |
le(Expression left,
Expression right)
Less-or-equal between expression results. |
static RelationalOpExpression |
le(java.lang.String propertyName,
java.lang.Object value)
Less-or-equals between a property and a constant. |
static RelationalOpExpression |
leProperty(java.lang.String propertyLeft,
java.lang.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 |
like(java.lang.String propertyName,
java.lang.Object value,
java.lang.String escape)
SQL-Like. |
static LikeExpression |
like(java.lang.String propertyName,
java.lang.String value)
SQL-Like. |
static RelationalOpExpression |
lt(Expression left,
Expression right)
Less-then between expression results. |
static RelationalOpExpression |
lt(java.lang.String propertyName,
java.lang.Object value)
Less-then between a property and a constant. |
static RelationalOpExpression |
ltProperty(java.lang.String propertyLeft,
java.lang.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 |
max(java.lang.String propertyName)
Maximum aggregation function. |
static MaxRowExpression |
max(java.lang.String propertyOne,
java.lang.String propertyTwo,
java.lang.String... moreProperties)
Maximum value per-row function (not aggregating). |
static MaxProjectionExpression |
maxDistinct(Expression expression)
Maximum aggregation function considering distinct values only. |
static MaxProjectionExpression |
maxDistinct(java.lang.String propertyName)
Maximum aggregation function considering distinct values only. |
static MedianProjectionExpression |
median(Expression expression)
Median aggregation function. |
static MedianProjectionExpression |
median(java.lang.String propertyName)
Median aggregation function. |
static MedianProjectionExpression |
medianDistinct(Expression expression)
Median aggregation function considering distinct values only. |
static MedianProjectionExpression |
medianDistinct(java.lang.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 |
min(java.lang.String propertyName)
Minimum aggregation function. |
static MinRowExpression |
min(java.lang.String propertyOne,
java.lang.String propertyTwo,
java.lang.String... moreProperties)
Minimum value per-row function (not aggregating). |
static MinProjectionExpression |
minDistinct(Expression expression)
Minimum aggregation function considering distinct values only. |
static MinProjectionExpression |
minDistinct(java.lang.String propertyName)
Minimum aggregation function considering distinct values only. |
static ArithmaticExpression |
minus(Expression left,
Expression right)
Subtraction. |
static ArithmaticExpression |
minus(java.lang.String propertyLeft,
java.lang.String propertyRight)
Subtraction. |
static ArithmaticExpression |
modulo(Expression left,
Expression right)
Modulo. |
static ArithmaticExpression |
modulo(java.lang.String propertyLeft,
java.lang.String propertyRight)
Modulo. |
static ArithmaticExpression |
multiply(Expression left,
Expression right)
Multiplication. |
static ArithmaticExpression |
multiply(java.lang.String propertyLeft,
java.lang.String propertyRight)
Multiplication. |
static RelationalOpExpression |
neq(Expression left,
Expression right)
Not-Equals between expression results. |
static RelationalOpExpression |
neq(java.lang.String propertyName,
java.lang.Object value)
Not-Equals between a property and a constant. |
static RelationalOpExpression |
neqProperty(java.lang.String propertyLeft,
java.lang.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 |
notIn(java.lang.String property,
java.lang.Object... values)
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 |
notLike(java.lang.String propertyName,
java.lang.Object value,
java.lang.String escape)
SQL-Like negated (not like). |
static LikeExpression |
notLike(java.lang.String propertyName,
java.lang.String value)
SQL-Like negated (not like). |
static RegExpExpression |
notRegexp(Expression left,
Expression right)
Regular expression negated (not regexp). |
static RegExpExpression |
notRegexp(Expression left,
Expression right,
java.lang.String escape)
Regular expression negated (not regexp). |
static RegExpExpression |
notRegexp(java.lang.String property,
java.lang.String regExExpression)
Regular expression negated (not regexp). |
static RegExpExpression |
notRegexp(java.lang.String property,
java.lang.String regExExpression,
java.lang.String escape)
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(java.lang.String functionName,
Expression... moreExpressions)
Plug-in aggregation function. |
static ArithmaticExpression |
plus(Expression left,
Expression right)
Addition. |
static ArithmaticExpression |
plus(java.lang.String propertyLeft,
java.lang.String propertyRight)
Addition. |
static PreviousExpression |
previous(Expression expression,
java.lang.String property)
Previous function. |
static PreviousExpression |
previous(int index,
java.lang.String property)
Previous function. |
static PreviousExpression |
previousCount(java.lang.String property)
Previous count function. |
static PreviousExpression |
previousTail(Expression expression,
java.lang.String property)
Previous tail function. |
static PreviousExpression |
previousTail(int index,
java.lang.String property)
Previous tail function. |
static PreviousExpression |
previousWindow(java.lang.String property)
Previous window function. |
static PriorExpression |
prior(int index,
java.lang.String property)
Prior function. |
static PropertyValueExpression |
property(java.lang.String propertyName)
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,
java.lang.String escape)
Regular expression. |
static RegExpExpression |
regexp(java.lang.String property,
java.lang.String regExExpression)
Regular expression. |
static RegExpExpression |
regexp(java.lang.String property,
java.lang.String regExExpression,
java.lang.String escape)
Regular expression. |
static StaticMethodExpression |
staticMethod(java.lang.String className,
java.lang.String method,
Expression... parameters)
Static method invocation. |
static StaticMethodExpression |
staticMethod(java.lang.String className,
java.lang.String method,
java.lang.Object... parameters)
Static method invocation. |
static StddevProjectionExpression |
stddev(Expression expression)
Standard deviation aggregation function. |
static StddevProjectionExpression |
stddev(java.lang.String propertyName)
Standard deviation aggregation function. |
static StddevProjectionExpression |
stddevDistinct(Expression expression)
Standard deviation function considering distinct values only. |
static StddevProjectionExpression |
stddevDistinct(java.lang.String propertyName)
Standard deviation function considering distinct values only. |
static SubqueryExpression |
subquery(EPStatementObjectModel model)
Subquery. |
static SubqueryExistsExpression |
subqueryExists(EPStatementObjectModel model)
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(java.lang.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(java.lang.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(java.lang.String propertyName)
Sum aggregation function. |
static SumProjectionExpression |
sumDistinct(Expression expression)
Sum aggregation function considering distinct values only. |
static SumProjectionExpression |
sumDistinct(java.lang.String propertyName)
Sum aggregation function considering distinct values only. |
static TimePeriodExpression |
timePeriod(java.lang.Double days,
java.lang.Double hours,
java.lang.Double minutes,
java.lang.Double seconds,
java.lang.Double milliseconds)
Returns a time period expression for the specified parts. |
static TimePeriodExpression |
timePeriod(java.lang.Object days,
java.lang.Object hours,
java.lang.Object minutes,
java.lang.Object seconds,
java.lang.Object milliseconds)
Returns a time period expression for the specified parts. |
protected static java.util.List<PropertyValueExpression> |
toPropertyExpressions(java.lang.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 |
typeOf(java.lang.String propertyName)
Type-of function, returns the event type name or result type as a string of a stream name, property or expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Expressions()
Method Detail |
---|
public static CurrentTimestampExpression currentTimestamp()
public static PropertyExistsExpression existsProperty(java.lang.String propertyName)
propertyName
- name of the property to test whether it exists or not
public static CastExpression cast(Expression expression, java.lang.String typeName)
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.
expression
- returns the value to casttypeName
- is type to cast to
public static CastExpression cast(java.lang.String propertyName, java.lang.String typeName)
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.
propertyName
- name of the property supplying the value to casttypeName
- is type to cast to
public static InstanceOfExpression instanceOf(Expression expression, java.lang.String typeName, java.lang.String... typeNames)
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.
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
public static InstanceOfExpression instanceOf(java.lang.String propertyName, java.lang.String typeName, java.lang.String... typeNames)
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.
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
public static TypeOfExpression typeOf(Expression expression)
expression
- to evaluate and return it's result type as a string
public static TypeOfExpression typeOf(java.lang.String propertyName)
propertyName
- returns the property to evaluate and return its event type name or property class type
public static PlugInProjectionExpression plugInAggregation(java.lang.String functionName, Expression... moreExpressions)
functionName
- is the function namemoreExpressions
- provides the values to aggregate
public static RegExpExpression regexp(Expression left, Expression right)
left
- returns the values to matchright
- returns the value to match against
public static RegExpExpression regexp(Expression left, Expression right, java.lang.String escape)
left
- returns the values to matchright
- returns the value to match againstescape
- is the escape character
public static RegExpExpression regexp(java.lang.String property, java.lang.String regExExpression)
property
- the name of the property returning values to matchregExExpression
- a regular expression to match against
public static RegExpExpression regexp(java.lang.String property, java.lang.String regExExpression, java.lang.String escape)
property
- the name of the property returning values to matchregExExpression
- a regular expression to match againstescape
- is the escape character
public static RegExpExpression notRegexp(Expression left, Expression right)
left
- returns the values to matchright
- returns the value to match against
public static RegExpExpression notRegexp(Expression left, Expression right, java.lang.String escape)
left
- returns the values to matchright
- returns the value to match againstescape
- is the escape character
public static RegExpExpression notRegexp(java.lang.String property, java.lang.String regExExpression)
property
- the name of the property returning values to matchregExExpression
- a regular expression to match against
public static RegExpExpression notRegexp(java.lang.String property, java.lang.String regExExpression, java.lang.String escape)
property
- the name of the property returning values to matchregExExpression
- a regular expression to match againstescape
- is the escape character
public static ArrayExpression array()
public static BitwiseOpExpression binaryAnd()
public static BitwiseOpExpression binaryOr()
public static BitwiseOpExpression binaryXor()
public static MinRowExpression min(java.lang.String propertyOne, java.lang.String propertyTwo, java.lang.String... moreProperties)
propertyOne
- the name of a first property to comparepropertyTwo
- the name of a second property to comparemoreProperties
- optional additional properties to compare
public static MinRowExpression min(Expression exprOne, Expression exprTwo, Expression... moreExpressions)
exprOne
- returns the first value to compareexprTwo
- returns the second value to comparemoreExpressions
- optional additional values to compare
public static MaxRowExpression max(java.lang.String propertyOne, java.lang.String propertyTwo, java.lang.String... moreProperties)
propertyOne
- the name of a first property to comparepropertyTwo
- the name of a second property to comparemoreProperties
- optional additional properties to compare
public static MaxRowExpression max(Expression exprOne, Expression exprTwo, Expression... moreExpressions)
exprOne
- returns the first value to compareexprTwo
- returns the second value to comparemoreExpressions
- optional additional values to compare
public static CoalesceExpression coalesce(java.lang.String propertyOne, java.lang.String propertyTwo, java.lang.String... moreProperties)
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
public static CoalesceExpression coalesce(Expression exprOne, Expression exprTwo, Expression... moreExpressions)
exprOne
- returns value to coalesceexprTwo
- returns value to coalescemoreExpressions
- returning optional additional values to coalesce
public static ConstantExpression constant(java.lang.Object value)
value
- is the constant value
public static ConstantExpression constant(java.lang.Object value, java.lang.Class constantType)
value
- is the constant valueconstantType
- is the type of the constant
public static CaseWhenThenExpression caseWhenThen()
public static CaseSwitchExpression caseSwitch(Expression valueToSwitchOn)
valueToSwitchOn
- provides the switch value
public static CaseSwitchExpression caseSwitch(java.lang.String propertyName)
propertyName
- the name of the property that provides the switch value
public static InExpression in(java.lang.String property, java.lang.Object... values)
property
- is the name of the propertyvalues
- are the constants to check against
public static InExpression notIn(java.lang.String property, java.lang.Object... values)
property
- is the name of the propertyvalues
- are the constants to check against
public static InExpression in(Expression value, Expression... set)
value
- provides values to matchset
- are expressons that provide match-against values
public static InExpression notIn(Expression value, Expression... set)
value
- provides values to matchset
- are expressons that provide match-against values
public static NotExpression not(Expression inner)
inner
- is the sub-expression
public static StaticMethodExpression staticMethod(java.lang.String className, java.lang.String method, java.lang.Object... 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
public static StaticMethodExpression staticMethod(java.lang.String className, java.lang.String method, Expression... 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
public static PriorExpression prior(int index, java.lang.String property)
index
- the numeric index of the prior eventproperty
- the name of the property to obtain the value for
public static PreviousExpression previous(Expression expression, java.lang.String property)
expression
- provides the numeric index of the previous eventproperty
- the name of the property to obtain the value for
public static PreviousExpression previous(int index, java.lang.String property)
index
- the numeric index of the previous eventproperty
- the name of the property to obtain the value for
public static PreviousExpression previousTail(Expression expression, java.lang.String property)
expression
- provides the numeric index of the previous eventproperty
- the name of the property to obtain the value for
public static PreviousExpression previousTail(int index, java.lang.String property)
index
- the numeric index of the previous eventproperty
- the name of the property to obtain the value for
public static PreviousExpression previousCount(java.lang.String property)
property
- provides the properties or stream name to select for the previous event
public static PreviousExpression previousWindow(java.lang.String property)
property
- provides the properties or stream name to select for the previous event
public static BetweenExpression betweenProperty(java.lang.String property, java.lang.String lowBoundaryProperty, java.lang.String highBoundaryProperty)
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.
public static BetweenExpression between(java.lang.String property, java.lang.Object lowBoundary, java.lang.Object highBoundary)
property
- the name of the property that returns the datapoint to check rangelowBoundary
- constant indicating the lower boundaryhighBoundary
- constant indicating the upper boundary
public static BetweenExpression between(Expression datapoint, Expression lowBoundary, Expression highBoundary)
datapoint
- returns the datapoint to check rangelowBoundary
- returns values for the lower boundaryhighBoundary
- returns values for the upper boundary
public static BetweenExpression range(Expression datapoint, Expression lowBoundary, Expression highBoundary, boolean isLowIncluded, boolean isHighIncluded)
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
public static Disjunction or()
public static Disjunction or(Expression first, Expression second, Expression... expressions)
first
- an expression returning values to junctionsecond
- an expression returning values to junctionexpressions
- an optional list of expressions returning values to junction
public static Conjunction and()
public static Conjunction and(Expression first, Expression second, Expression... expressions)
first
- an expression returning values to junctionsecond
- an expression returning values to junctionexpressions
- an optional list of expressions returning values to junction
public static RelationalOpExpression ge(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression ge(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression geProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression gt(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression gt(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression gtProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression le(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression leProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression le(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression lt(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression ltProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression lt(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression eq(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression neq(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the property providing left hand side valuesvalue
- is the constant to compare
public static RelationalOpExpression eqProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression neqProperty(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand side valuespropertyRight
- the name of the property providing right hand side values
public static RelationalOpExpression eq(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression neq(Expression left, Expression right)
left
- the expression providing left hand side valuesright
- the expression providing right hand side values
public static RelationalOpExpression isNotNull(java.lang.String property)
property
- the name of the property supplying the value to check for null
public static RelationalOpExpression isNotNull(Expression expression)
expression
- supplies the value to check for null
public static RelationalOpExpression isNull(java.lang.String property)
property
- the name of the property supplying the value to check for null
public static RelationalOpExpression isNull(Expression expression)
expression
- supplies the value to check for null
public static PropertyValueExpression property(java.lang.String propertyName)
An expression that returns the value of the named property.
Nested, indexed or mapped properties follow the documented sytnax.
propertyName
- is the name of the property to return the value for.
public static LikeExpression like(java.lang.String propertyName, java.lang.String value)
propertyName
- the name of the property providing values to matchvalue
- is the string to match against
public static LikeExpression like(Expression left, Expression right)
left
- provides value to matchright
- provides string to match against
public static LikeExpression like(java.lang.String propertyName, java.lang.Object value, java.lang.String escape)
propertyName
- the name of the property providing values to matchvalue
- is the string to match againstescape
- the escape character(s)
public static LikeExpression like(Expression left, Expression right, Expression escape)
left
- provides value to matchright
- provides string to match againstescape
- the escape character(s)
public static LikeExpression notLike(java.lang.String propertyName, java.lang.String value)
propertyName
- the name of the property providing values to matchvalue
- is the string to match against
public static LikeExpression notLike(Expression left, Expression right)
left
- provides value to matchright
- provides string to match against
public static LikeExpression notLike(java.lang.String propertyName, java.lang.Object value, java.lang.String escape)
propertyName
- the name of the property providing values to matchvalue
- is the string to match againstescape
- the escape character(s)
public static LikeExpression notLike(Expression left, Expression right, Expression escape)
left
- provides value to matchright
- provides string to match againstescape
- the escape character(s)
public static AvgProjectionExpression avg(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static AvgProjectionExpression avg(Expression expression)
expression
- provides the values to aggregate.
public static AvgProjectionExpression avgDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static AvgProjectionExpression avgDistinct(Expression expression)
expression
- provides the values to aggregate.
public static MedianProjectionExpression median(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MedianProjectionExpression median(Expression expression)
expression
- provides the values to aggregate.
public static MedianProjectionExpression medianDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MedianProjectionExpression medianDistinct(Expression expression)
expression
- provides the values to aggregate.
public static StddevProjectionExpression stddev(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static StddevProjectionExpression stddev(Expression expression)
expression
- provides the values to aggregate.
public static StddevProjectionExpression stddevDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static StddevProjectionExpression stddevDistinct(Expression expression)
expression
- provides the values to aggregate.
public static AvedevProjectionExpression avedev(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static LastEverProjectionExpression lastEver(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static LastProjectionExpression last(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static LastEverProjectionExpression lastEver(Expression expression)
expression
- provides the values to aggregate.
public static LastProjectionExpression last(Expression expression)
expression
- provides the values to aggregate.
public static FirstProjectionExpression first(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static FirstEverProjectionExpression firstEver(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static FirstProjectionExpression first(Expression expression)
expression
- provides the values to aggregate.
public static FirstEverProjectionExpression firstEver(Expression expression)
expression
- provides the values to aggregate.
public static AvedevProjectionExpression avedev(Expression expression)
expression
- provides the values to aggregate.
public static AvedevProjectionExpression avedevDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static AvedevProjectionExpression avedevDistinct(Expression expression)
expression
- provides the values to aggregate.
public static SumProjectionExpression sum(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static SumProjectionExpression sum(Expression expression)
expression
- provides the values to aggregate.
public static SumProjectionExpression sumDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static SumProjectionExpression sumDistinct(Expression expression)
expression
- provides the values to aggregate.
public static CountStarProjectionExpression countStar()
public static CountProjectionExpression count(java.lang.String propertyName)
propertyName
- name of the property providing the values to count.
public static CountProjectionExpression count(Expression expression)
expression
- provides the values to count.
public static CountProjectionExpression countDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to count.
public static CountProjectionExpression countDistinct(Expression expression)
expression
- provides the values to count.
public static MinProjectionExpression min(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MinProjectionExpression min(Expression expression)
expression
- provides the values to aggregate.
public static MinProjectionExpression minDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MinProjectionExpression minDistinct(Expression expression)
expression
- provides the values to aggregate.
public static MaxProjectionExpression max(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MaxProjectionExpression max(Expression expression)
expression
- provides the values to aggregate.
public static MaxProjectionExpression maxDistinct(java.lang.String propertyName)
propertyName
- name of the property providing the values to aggregate.
public static MaxProjectionExpression maxDistinct(Expression expression)
expression
- provides the values to aggregate.
public static ArithmaticExpression modulo(Expression left, Expression right)
left
- the expression providing left hand valuesright
- the expression providing right hand values
public static ArithmaticExpression modulo(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values
public static ArithmaticExpression minus(Expression left, Expression right)
left
- the expression providing left hand valuesright
- the expression providing right hand values
public static ArithmaticExpression minus(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values
public static ArithmaticExpression plus(Expression left, Expression right)
left
- the expression providing left hand valuesright
- the expression providing right hand values
public static ArithmaticExpression plus(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values
public static ArithmaticExpression multiply(Expression left, Expression right)
left
- the expression providing left hand valuesright
- the expression providing right hand values
public static ArithmaticExpression multiply(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values
public static ArithmaticExpression divide(Expression left, Expression right)
left
- the expression providing left hand valuesright
- the expression providing right hand values
public static ArithmaticExpression divide(java.lang.String propertyLeft, java.lang.String propertyRight)
propertyLeft
- the name of the property providing left hand valuespropertyRight
- the name of the property providing right hand values
public static ConcatExpression concat(java.lang.String property, java.lang.String... properties)
property
- the name of property returning values to concatenateproperties
- the names of additional properties returning values to concatenate
public static SubqueryExpression subquery(EPStatementObjectModel model)
model
- is the object model of the lookup
public static SubqueryInExpression subqueryIn(java.lang.String property, EPStatementObjectModel model)
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
public static SubqueryInExpression subqueryNotIn(java.lang.String property, EPStatementObjectModel model)
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
public static SubqueryExistsExpression subqueryExists(EPStatementObjectModel model)
model
- is the object model of the lookup
public static SubqueryInExpression subqueryIn(Expression expression, EPStatementObjectModel model)
expression
- returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup
public static SubqueryInExpression subqueryNotIn(Expression expression, EPStatementObjectModel model)
expression
- returns the value to match against the values returned by the lookupmodel
- is the object model of the lookup
public static TimePeriodExpression timePeriod(java.lang.Double days, java.lang.Double hours, java.lang.Double minutes, java.lang.Double seconds, java.lang.Double milliseconds)
Each part can be a null value in which case the part is left out.
days
- day parthours
- hour partminutes
- minute partseconds
- seconds partmilliseconds
- milliseconds part
public static TimePeriodExpression timePeriod(java.lang.Object days, java.lang.Object hours, java.lang.Object minutes, java.lang.Object seconds, java.lang.Object milliseconds)
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.
days
- day parthours
- hour partminutes
- minute partseconds
- seconds partmilliseconds
- milliseconds part
public static CrontabParameterExpression crontabScheduleWildcard()
public static CrontabParameterExpression crontabScheduleItem(java.lang.Integer parameter, ScheduleItemType type)
parameter
- the constant parameter for the typetype
- the type of crontab parameter
public static CrontabFrequencyExpression crontabScheduleFrequency(int frequency)
frequency
- the constant for the frequency
public static CrontabRangeExpression crontabScheduleRange(int lowerBounds, int upperBounds)
lowerBounds
- the lower boundsupperBounds
- the upper bounds
protected static java.util.List<PropertyValueExpression> toPropertyExpressions(java.lang.String... properties)
properties
- is a list of property names
protected static PropertyValueExpression getPropExpr(java.lang.String propertyName)
propertyName
- the name of the property returning property values
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |