Enum Class StatementType

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

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

  • Method Details

    • values

      public static StatementType[] 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 StatementType 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
    • isInsert

      public boolean isInsert()
      Checks if this type is an insert.
      Returns:
      true if this type is an insert, false otherwise.
    • isUpdate

      public boolean isUpdate()
      Checks if this type is an update.
      Returns:
      true if this type is an update, false otherwise.
    • isDelete

      public boolean isDelete()
      Checks if this type is a delete.
      Returns:
      true if this type is a delete, false otherwise.
    • isSelect

      public boolean isSelect()
      Checks if this type is a select.
      Returns:
      true if this type is a select, false otherwise.
    • allowPartitionKeyRanges

      public boolean allowPartitionKeyRanges()
      Checks this statement allow the where clause to contains missing partition key components or token relation.
      Returns:
      true if this statement allow the where clause to contains missing partition key components or token relation, false otherwise.
    • allowClusteringColumnSlices

      public boolean allowClusteringColumnSlices()
      Checks this type of statement allow the where clause to contains clustering column slices.
      Returns:
      true if this type of statement allow the where clause to contains clustering column slices, false otherwise.
    • allowNonPrimaryKeyInWhereClause

      public boolean allowNonPrimaryKeyInWhereClause()
      Checks if this type of statement allow non primary key in the where clause.
      Returns:
      true if this type of statement allow non primary key in the where clause, false otherwise.
    • allowUseOfSecondaryIndices

      public boolean allowUseOfSecondaryIndices()
      Checks if this type of statement allow the use of secondary indices.
      Returns:
      true if this type of statement allow the use of secondary indices, false otherwise.