Class KeyspaceIdentifier

java.lang.Object
org.springframework.data.cassandra.core.cql.KeyspaceIdentifier
All Implemented Interfaces:
Comparable<KeyspaceIdentifier>

@Deprecated(forRemoval=true) public final class KeyspaceIdentifier extends Object implements Comparable<KeyspaceIdentifier>
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.0, use CqlIdentifier.
This encapsulates the logic for keyspace identifiers.

Keyspace identifiers are converted to lower case. To render, use any of the methods toCql(), toCql(StringBuilder), or toString().

Author:
Matthew T. Adams
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    equals(Object that)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Compares this KeyspaceIdentifier to the given object.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if the given CharSequence is a legal keyspace identifier.
    ksId(CharSequence identifier)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2.0, use of(CharSequence).
    of(CharSequence identifier)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Factory method for KeyspaceIdentifier.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Renders this identifier appropriately.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Appends the rendering of this identifier to the given StringBuilder, then returns that StringBuilder.
    com.datastax.oss.driver.api.core.CqlIdentifier
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a CqlIdentifier from this KeyspaceIdentifier.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Alias for toCql().

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • REGEX

      public static final String REGEX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • PATTERN

      public static final Pattern PATTERN
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • ksId

      @Deprecated(forRemoval=true) public static KeyspaceIdentifier ksId(CharSequence identifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2.0, use of(CharSequence).
      Factory method for KeyspaceIdentifier. Convenient if imported statically.
    • of

      public static KeyspaceIdentifier of(CharSequence identifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method for KeyspaceIdentifier. Convenient if imported statically.
      Since:
      2.0
    • isIdentifier

      public static boolean isIdentifier(CharSequence chars)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if the given CharSequence is a legal keyspace identifier.
    • toCql

      public String toCql()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Renders this identifier appropriately.
    • toCql

      public StringBuilder toCql(StringBuilder sb)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Appends the rendering of this identifier to the given StringBuilder, then returns that StringBuilder. If null is given, a new StringBuilder is created, appended to, and returned.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Alias for toCql().
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object that)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Compares this KeyspaceIdentifier to the given object. Note that if a CharSequence is given, a new KeyspaceIdentifier is created from it and compared, such that a CharSequence can be effectively equal to a KeyspaceIdentifier.
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(KeyspaceIdentifier that)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      compareTo in interface Comparable<KeyspaceIdentifier>
    • toCqlIdentifier

      public com.datastax.oss.driver.api.core.CqlIdentifier toCqlIdentifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a CqlIdentifier from this KeyspaceIdentifier.
      Returns:
      the CqlIdentifier from this KeyspaceIdentifier.
      Since:
      3.0