|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.KeyspaceMetadata
public class KeyspaceMetadata
Describes a keyspace defined in this cluster.
Field Summary | |
---|---|
static String |
KS_NAME
|
Method Summary | |
---|---|
String |
asCQLQuery()
Returns a CQL query representing this keyspace. |
String |
exportAsString()
Returns a String containing CQL queries representing this
keyspace and the table it contains. |
String |
getName()
Returns the name of this keyspace. |
Map<String,String> |
getReplication()
Returns the replication options for this keyspace. |
TableMetadata |
getTable(String name)
Returns the metadata for a table contained in this keyspace. |
Collection<TableMetadata> |
getTables()
Returns the tables defined in this keyspace. |
boolean |
isDurableWrites()
Returns whether durable writes are set on this keyspace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KS_NAME
Method Detail |
---|
public String getName()
public boolean isDurableWrites()
true
if durable writes are set on this keyspace (the
default), false
otherwise.public Map<String,String> getReplication()
public TableMetadata getTable(String name)
name
- the name of table to retrieve
name
in this keyspace if it
exists, false
otherwise.public Collection<TableMetadata> getTables()
public String exportAsString()
String
containing CQL queries representing this
keyspace and the table it contains.
In other words, this method returns the queries that would allow to
recreate the schema of this keyspace, along with all its table.
Note that the returned String is formatted to be human readable (for
some definition of human readable at least).
public String asCQLQuery()
exportAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |