Class: CassandraClient

vertx-cassandra-js/cassandra_client~ CassandraClient

new CassandraClient()

Eclipse Vert.x Cassandra client.
Source:

Methods

close(closeHandler) → {CassandraClient}

Closes this client.
Parameters:
Name Type Description
closeHandler function handler called when client is closed
Source:
Returns:
current Cassandra client instance
Type
CassandraClient

execute(query, resultHandler) → {CassandraClient}

Execute the query and provide a handler for consuming results.
Parameters:
Name Type Description
query string the query to execute
resultHandler function handler called when result of execution is present, but can be not fully fetched
Source:
Returns:
current Cassandra client instance
Type
CassandraClient

isConnected() → {boolean}

Source:
Returns:
whether this Cassandra client instance is connected
Type
boolean

queryStream(sql, rowStreamHandler) → {CassandraClient}

Executes the given SQL SELECT statement which returns the results of the query as a read stream.
Parameters:
Name Type Description
sql string the SQL to execute. For example SELECT * FROM table ....
rowStreamHandler function the handler which is called once the operation completes. It will return an instance of CassandraRowStream.
Source:
Returns:
current Cassandra client instance
Type
CassandraClient