public final class SpecialCommandsUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.datastax.oss.driver.api.core.cql.ResultSet |
buildEmptyResultSet()
Builds an empty result set.
|
static com.datastax.oss.driver.api.core.cql.ResultSet |
buildSpecialCommandResultSet(ColumnDefinitions.Definition[] colDefinitions,
List<List<ByteBuffer>> rows)
Builds a result set returned by a special command.
|
static boolean |
containsSpecialCommands(String cql)
Checks whether the CQL statement contains at least one special command (supported by this JDBC driver)
to execute.
|
static SpecialCommands.SpecialCommandExecutor |
getCommandExecutor(String cql)
Gets the appropriate executor for special command.
|
public static boolean containsSpecialCommands(String cql)
cql - The CQL statement.true if the given statement contains at least one special command to execute, false
otherwise.public static SpecialCommands.SpecialCommandExecutor getCommandExecutor(String cql)
cql - The CQL statement.null if the statement is not a special command or not
supported.public static com.datastax.oss.driver.api.core.cql.ResultSet buildEmptyResultSet()
public static com.datastax.oss.driver.api.core.cql.ResultSet buildSpecialCommandResultSet(ColumnDefinitions.Definition[] colDefinitions, List<List<ByteBuffer>> rows)
colDefinitions - The list of columns to include in the result set.rows - The list of rows to include in the result set. Each row is a list of ByteBuffer
representation of the data, each item of the list being the value of the n-th column.Copyright © 2020–2024 ING Bank. All rights reserved.