Class CassandraDb
java.lang.Object
kieker.extension.cassandra.reader.CassandraDb
- Author:
- Armin Moebius, Sven Ulrich
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraDb(String keyspace, List<InetSocketAddress> contactPoints) Creates a new instance of this class using the given parameter. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Establishes a connection to the database.voidCloses all open sessions and connections to the database.com.datastax.oss.driver.api.core.cql.ResultSetSelect data form the Cassandra cluster.
-
Constructor Details
-
CassandraDb
Creates a new instance of this class using the given parameter.- Parameters:
keyspace-contactPoints-
-
-
Method Details
-
connect
public void connect()Establishes a connection to the database. -
disconnect
public void disconnect()Closes all open sessions and connections to the database. -
select
public com.datastax.oss.driver.api.core.cql.ResultSet select(List<String> fields, String table, String whereClause) Select data form the Cassandra cluster.- Parameters:
fields-table-whereClause-- Returns:
- returns a result set
-