Package tech.ydb.yoj.databind.expression
Enum Class ScalarExpr.Operator
- All Implemented Interfaces:
Serializable,Comparable<ScalarExpr.Operator>,Constable
- Enclosing class:
- ScalarExpr<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription"Contains" case-sensitive match for a substring in a string E.g.,name contains "abc"Exact match for numbers, case-sensitive match for strings."Greater than" match for numbers and strings (strings are compared lexicographically)."Greater than or equal" match for numbers and strings (strings are compared lexicographically)."Less than" match for numbers and strings (strings are compared lexicographically)."Less than or equal" match for numbers and strings (strings are compared lexicographically).Exact negative match for numbers, case-sensitive negative match for strings."Not contains" case-sensitive absence of a substring in a string E.g.,name not contains "abc" -
Method Summary
Modifier and TypeMethodDescriptionabstract ScalarExpr.Operatornegate()static ScalarExpr.OperatorReturns the enum constant of this class with the specified name.static ScalarExpr.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
Exact match for numbers, case-sensitive match for strings. E.g.,zone='ru-central-1'orsize=1024 -
NEQ
Exact negative match for numbers, case-sensitive negative match for strings. E.g.,zone!="ru-central-1"orsize!=1024 -
LT
"Less than" match for numbers and strings (strings are compared lexicographically). E.g.,size < 100 -
LTE
"Less than or equal" match for numbers and strings (strings are compared lexicographically). E.g.,size <= 2048 -
GT
"Greater than" match for numbers and strings (strings are compared lexicographically). E.g.,size > 100 -
GTE
"Greater than or equal" match for numbers and strings (strings are compared lexicographically). E.g.,size >= 4096 -
CONTAINS
"Contains" case-sensitive match for a substring in a string E.g.,name contains "abc" -
NOT_CONTAINS
"Not contains" case-sensitive absence of a substring in a string E.g.,name not contains "abc"
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
negate
-