Package org.apache.cassandra.cql3
Class QualifiedName
- java.lang.Object
-
- org.apache.cassandra.cql3.QualifiedName
-
public class QualifiedName extends java.lang.ObjectClass 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 booleanequals(java.lang.Object o)java.lang.StringgetKeyspace()java.lang.StringgetName()inthashCode()booleanhasKeyspace()Checks if the keyspace is specified.voidsetKeyspace(java.lang.String ks, boolean keepCase)Sets the keyspace.voidsetName(java.lang.String cf, boolean keepCase)java.lang.StringtoCQLString()Returns a string representation of the qualified name that is safe to use directly in CQL queries.java.lang.StringtoString()
-
-
-
Method Detail
-
setKeyspace
public final void setKeyspace(java.lang.String ks, boolean keepCase)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
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:
toStringin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-