public class MetadataBridge extends Object
MetadataBridge class is used to access protected methods of
the Metadata.| Constructor and Description |
|---|
MetadataBridge() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeId(String id)
Escape a CQL3 identifier based on its value as read from the schema tables.
|
static int |
getNumHosts(com.datastax.driver.core.Metadata mdata)
Gets the number of known hosts of the cluster based on its meta data.
|
public static int getNumHosts(com.datastax.driver.core.Metadata mdata)
Note: The implementation here avoids creating a temporary read-only collection.
mdata - the meta data for the clusterpublic static String escapeId(String id)
id - the identifier to escapeCopyright (C) 2015-2017 The Helenus Driver Project Authors.