Class QualifiedName

java.lang.Object
org.apache.cassandra.cql3.QualifiedName

public class QualifiedName extends Object
Class for the names of the keyspace-prefixed elements (e.g. table, index, view names)
  • Constructor Details

    • QualifiedName

      public QualifiedName()
    • QualifiedName

      public QualifiedName(String keyspace, String name)
  • Method Details

    • setKeyspace

      public final void setKeyspace(String ks, boolean keepCase)
      Sets the keyspace.
      Parameters:
      ks - the keyspace name
      keepCase - true if the case must be kept, false otherwise.
    • hasKeyspace

      public final boolean hasKeyspace()
      Checks if the keyspace is specified.
      Returns:
      true if the keyspace is specified, false otherwise.
    • getKeyspace

      public final String getKeyspace()
    • setName

      public void setName(String cf, boolean keepCase)
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toCQLString

      public String toCQLString()
      Returns a string representation of the qualified name that is safe to use directly in CQL queries. If necessary, the string will be double-quoted, and any quotes inside the string will be escaped.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object