Enum Class Operator

java.lang.Object
java.lang.Enum<Operator>
org.apache.cassandra.cql3.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>, Constable

public enum Operator extends Enum<Operator>
  • Enum Constant Details

    • EQ

      public static final Operator EQ
    • LT

      public static final Operator LT
    • LTE

      public static final Operator LTE
    • GTE

      public static final Operator GTE
    • GT

      public static final Operator GT
    • IN

      public static final Operator IN
    • CONTAINS

      public static final Operator CONTAINS
    • CONTAINS_KEY

      public static final Operator CONTAINS_KEY
    • NEQ

      public static final Operator NEQ
    • IS_NOT

      public static final Operator IS_NOT
    • LIKE_PREFIX

      public static final Operator LIKE_PREFIX
    • LIKE_SUFFIX

      public static final Operator LIKE_SUFFIX
    • LIKE_CONTAINS

      public static final Operator LIKE_CONTAINS
    • LIKE_MATCHES

      public static final Operator LIKE_MATCHES
    • LIKE

      public static final Operator LIKE
    • ANN

      public static final Operator ANN
  • Method Details

    • values

      public static 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 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
    • writeTo

      public void writeTo(DataOutput output) throws IOException
      Write the serialized version of this Operator to the specified output.
      Parameters:
      output - the output to write to
      Throws:
      IOException - if an I/O problem occurs while writing to the specified output
    • getValue

      public int getValue()
    • readFrom

      public static Operator readFrom(DataInput input) throws IOException
      Deserializes a Operator instance from the specified input.
      Parameters:
      input - the input to read from
      Returns:
      the Operator instance deserialized
      Throws:
      IOException - if a problem occurs while deserializing the Type instance.
    • isSatisfiedBy

      public abstract boolean isSatisfiedBy(AbstractType<?> type, ByteBuffer leftOperand, ByteBuffer rightOperand)
      Whether 2 values satisfy this operator (given the type they should be compared with).
    • serializedSize

      public int serializedSize()
    • isSlice

      public boolean isSlice()
      Checks if this operator is a slice operator.
      Returns:
      true if this operator is a slice operator, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Operator>
    • isIN

      public boolean isIN()
      Checks if this operator is an IN operator.
      Returns:
      true if this operator is an IN operator, false otherwise.
    • isContains

      public boolean isContains()
      Checks if this operator is CONTAINS operator.
      Returns:
      true if this operator is a CONTAINS operator, false otherwise.
    • isContainsKey

      public boolean isContainsKey()
      Checks if this operator is CONTAINS KEY operator.
      Returns:
      true if this operator is a CONTAINS operator, false otherwise.