Package org.synchronoss.cpo.cassandra
Class ClusterDataSource
java.lang.Object
org.synchronoss.cpo.cassandra.ClusterDataSource
Represents a Cassandra session
- Author:
- dberry
-
Constructor Summary
ConstructorsConstructorDescriptionClusterDataSource(com.datastax.oss.driver.api.core.CqlSession session, String keySpace) Construct a ClusterDataSource -
Method Summary
Modifier and TypeMethodDescriptionGets the keyspace this data source's session is connected to.
-
Constructor Details
-
ClusterDataSource
Construct a ClusterDataSource- Parameters:
session- The cassandra session, already built with the keyspace appliedkeySpace- The keyspace
-
-
Method Details
-
getKeySpace
Gets the keyspace this data source's session is connected to.- Returns:
- the keyspace name
-