public class SessionFactory extends Object
| Constructor and Description |
|---|
SessionFactory(com.datastax.driver.core.Cluster cluster,
String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.Session |
create()
Creates a new initialised
session to the Cassandra cluster. |
String |
getClusterName() |
String |
getKeyspace() |
public SessionFactory(com.datastax.driver.core.Cluster cluster,
String keyspace)
public String getClusterName()
public String getKeyspace()
public com.datastax.driver.core.Session create()
session to the Cassandra cluster. If provided, the keyspace will
set on the Session before returning it.Copyright © 2014 Stuart Gunter. All rights reserved.