Package org.apache.cassandra.cql3
Class QualifiedName
java.lang.Object
org.apache.cassandra.cql3.QualifiedName
Class for the names of the keyspace-prefixed elements (e.g. table, index, view names)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal StringgetName()inthashCode()final booleanChecks if the keyspace is specified.final voidsetKeyspace(String ks, boolean keepCase) Sets the keyspace.voidReturns a string representation of the qualified name that is safe to use directly in CQL queries.toString()
-
Constructor Details
-
QualifiedName
public QualifiedName() -
QualifiedName
-
-
Method Details
-
setKeyspace
Sets the keyspace.- Parameters:
ks- the keyspace namekeepCase-trueif the case must be kept,falseotherwise.
-
hasKeyspace
public final boolean hasKeyspace()Checks if the keyspace is specified.- Returns:
trueif the keyspace is specified,falseotherwise.
-
getKeyspace
-
setName
-
getName
-
toString
-
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() -
equals
-