new CassandraClient()
Eclipse Vert.x Cassandra client.
Methods
close(closeHandler) → {CassandraClient}
Closes this client.
Parameters:
| Name | Type | Description |
|---|---|---|
closeHandler |
function | handler called when client is closed |
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 |
Returns:
current Cassandra client instance
- Type
- CassandraClient
isConnected() → {boolean}
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. |
Returns:
current Cassandra client instance
- Type
- CassandraClient