Enum Class ScalarExpr.Operator

java.lang.Object
java.lang.Enum<ScalarExpr.Operator>
tech.ydb.yoj.databind.expression.ScalarExpr.Operator
All Implemented Interfaces:
Serializable, Comparable<ScalarExpr.Operator>, Constable
Enclosing class:
ScalarExpr<T>

public static enum ScalarExpr.Operator extends Enum<ScalarExpr.Operator>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    "Contains" case-sensitive match for a substring in a string E.g., name contains "abc"
    "Ends with" is case-sensitive match to check if a string ends with the specified substring.
    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"
    "Starts with" is case-sensitive match to check if a string starts with the specified substring.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • EQ

      public static final ScalarExpr.Operator EQ
      Exact match for numbers, case-sensitive match for strings. E.g., zone='ru-central-1' or size=1024
    • NEQ

      public static final ScalarExpr.Operator NEQ
      Exact negative match for numbers, case-sensitive negative match for strings. E.g., zone!="ru-central-1" or size!=1024
    • LT

      public static final ScalarExpr.Operator LT
      "Less than" match for numbers and strings (strings are compared lexicographically). E.g., size < 100
    • LTE

      public static final ScalarExpr.Operator LTE
      "Less than or equal" match for numbers and strings (strings are compared lexicographically). E.g., size <= 2048
    • GT

      public static final ScalarExpr.Operator GT
      "Greater than" match for numbers and strings (strings are compared lexicographically). E.g., size > 100
    • GTE

      public static final ScalarExpr.Operator GTE
      "Greater than or equal" match for numbers and strings (strings are compared lexicographically). E.g., size >= 4096
    • STARTS_WITH

      public static final ScalarExpr.Operator STARTS_WITH
      "Starts with" is case-sensitive match to check if a string starts with the specified substring. E.g., name startswith "Al"
    • ENDS_WITH

      public static final ScalarExpr.Operator ENDS_WITH
      "Ends with" is case-sensitive match to check if a string ends with the specified substring. E.g., name endswith "exey"
    • CONTAINS

      public static final ScalarExpr.Operator CONTAINS
      "Contains" case-sensitive match for a substring in a string E.g., name contains "abc"
    • NOT_CONTAINS

      public static final ScalarExpr.Operator NOT_CONTAINS
      "Not contains" case-sensitive absence of a substring in a string E.g., name not contains "abc"
  • Method Details

    • values

      public static ScalarExpr.Operator[] 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

      public static ScalarExpr.Operator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • negate

      @Nullable public abstract ScalarExpr.Operator negate()