public class ConsistencyLevelExecutor extends Object implements SpecialCommandExecutor
CONSISTENCY [level]: if level is specified, set the current consistency level of the
connection to the given value, otherwise return a result set with a single row containing the
current consistency level in a column consistency_level.
The documentation of the original CONSISTENCY command is available:
| 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 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–2026 ING Bank. All rights reserved.