Package org.apache.cassandra.cql3
Class QualifiedName
- java.lang.Object
-
- org.apache.cassandra.cql3.QualifiedName
-
public class QualifiedName extends java.lang.Object
Class for the names of the keyspace-prefixed elements (e.g. table, index, view names)
-
-
Constructor Summary
Constructors Constructor Description QualifiedName()
QualifiedName(java.lang.String keyspace, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getKeyspace()
java.lang.String
getName()
int
hashCode()
boolean
hasKeyspace()
Checks if the keyspace is specified.void
setKeyspace(java.lang.String ks, boolean keepCase)
Sets the keyspace.void
setName(java.lang.String cf, boolean keepCase)
java.lang.String
toCQLString()
Returns a string representation of the qualified name that is safe to use directly in CQL queries.java.lang.String
toString()
-
-
-
Method Detail
-
setKeyspace
public final void setKeyspace(java.lang.String ks, boolean keepCase)
Sets the keyspace.- Parameters:
ks
- the keyspace namekeepCase
-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 java.lang.String getKeyspace()
-
setName
public void setName(java.lang.String cf, boolean keepCase)
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toCQLString
public java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-