public static class SpecialCommands.ConsistencyLevelExecutor extends Object implements SpecialCommands.SpecialCommandExecutor
CONSISTENCY [level]: if level is specified, set the current consistency level of the
connection to the given value, otherwise return a return a result set with a single row containing the
current consistency level in a column consistency_level.
| Constructor and Description |
|---|
ConsistencyLevelExecutor(String levelParameter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.datastax.oss.driver.api.core.cql.ResultSet |
execute(CassandraStatement statement,
String cql)
Executes the given CQL statement as a special command not handled by the Java driver.
|
public com.datastax.oss.driver.api.core.cql.ResultSet execute(CassandraStatement statement, String cql) throws SQLException
execute in interface SpecialCommands.SpecialCommandExecutorstatement - The Cassandra statement.cql - The CQL statement to execute.SpecialCommandsUtil.buildEmptyResultSet()) if the command is not expected to return some results.SQLException - if something went wrong with the Cassandra statement.Copyright © 2020–2024 ING Bank. All rights reserved.