|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FilterOperator>
com.espertech.esper.filter.FilterOperator
public enum FilterOperator
Defines the different operator types available for event filters. Mathematical notation for defining ranges of floating point numbers is used as defined below:
[a,b] a closed range from value a to value b with the end-points a and b included in the range
(a,b) an open range from value a to value b with the end-points a and b not included in the range
[a,b) a half-open range from value a to value b with the end-point a included and end-point b not included in the range
(a,b] a half-open range from value a to value b with the end-point a not included and end-point b included in the range
Enum Constant Summary | |
---|---|
BOOLEAN_EXPRESSION
Boolean expression filter operator |
|
EQUAL
Exact matches (=). |
|
GREATER
Greater (>). |
|
GREATER_OR_EQUAL
Greater or equal (>=). |
|
IN_LIST_OF_VALUES
List of values using the 'in' operator |
|
IS
Exact matches allowing null (is). |
|
IS_NOT
Exact not matches allowing null (is not). |
|
LESS
Less (<). |
|
LESS_OR_EQUAL
Less or equal (<=). |
|
NOT_EQUAL
Exact not matche (!=). |
|
NOT_IN_LIST_OF_VALUES
Not-in list of values using the 'not in' operator |
|
NOT_RANGE_CLOSED
Inverted-Range contains low and high endpoint, i.e. |
|
NOT_RANGE_HALF_CLOSED
Inverted-Range includes high endpoint but not low endpoint, i.e. |
|
NOT_RANGE_HALF_OPEN
Inverted-Range includes low endpoint but not high endpoint, i.e. |
|
NOT_RANGE_OPEN
Inverted-Range contains neither endpoint, i.e. |
|
RANGE_CLOSED
Range contains low and high endpoint, i.e. |
|
RANGE_HALF_CLOSED
Range includes high endpoint but not low endpoint, i.e. |
|
RANGE_HALF_OPEN
Range includes low endpoint but not high endpoint, i.e. |
|
RANGE_OPEN
Range contains neither endpoint, i.e. |
Method Summary | |
---|---|
java.lang.String |
getTextualOp()
|
boolean |
isComparisonOperator()
Returns true for relational comparison operators which excludes the = equals operator, else returns false. |
boolean |
isInvertedRangeOperator()
Returns true for inverted range operators, false if not an inverted range operator. |
boolean |
isRangeOperator()
Returns true for all range operators, false if not a range operator. |
static FilterOperator |
parseRangeOperator(boolean isInclusiveFirst,
boolean isInclusiveLast,
boolean isNot)
Parse the range operator from booleans describing whether the start or end values are exclusive. |
FilterOperator |
reversedRelationalOp()
|
static FilterOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FilterOperator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FilterOperator EQUAL
public static final FilterOperator NOT_EQUAL
public static final FilterOperator IS
public static final FilterOperator IS_NOT
public static final FilterOperator LESS
public static final FilterOperator LESS_OR_EQUAL
public static final FilterOperator GREATER_OR_EQUAL
public static final FilterOperator GREATER
public static final FilterOperator RANGE_OPEN
public static final FilterOperator RANGE_CLOSED
public static final FilterOperator RANGE_HALF_OPEN
public static final FilterOperator RANGE_HALF_CLOSED
public static final FilterOperator NOT_RANGE_OPEN
public static final FilterOperator NOT_RANGE_CLOSED
public static final FilterOperator NOT_RANGE_HALF_OPEN
public static final FilterOperator NOT_RANGE_HALF_CLOSED
public static final FilterOperator IN_LIST_OF_VALUES
public static final FilterOperator NOT_IN_LIST_OF_VALUES
public static final FilterOperator BOOLEAN_EXPRESSION
Method Detail |
---|
public static FilterOperator[] values()
for (FilterOperator c : FilterOperator.values()) System.out.println(c);
public static FilterOperator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean isRangeOperator()
public boolean isInvertedRangeOperator()
public boolean isComparisonOperator()
public static FilterOperator parseRangeOperator(boolean isInclusiveFirst, boolean isInclusiveLast, boolean isNot)
isInclusiveFirst
- true if low endpoint is inclusive, false if notisInclusiveLast
- true if high endpoint is inclusive, false if notisNot
- is true if this is an inverted range, or false if a regular range
public java.lang.String getTextualOp()
public FilterOperator reversedRelationalOp()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |