public class SourceCommandExecutor extends Object implements SpecialCommandExecutor
SOURCE <filename>: where filename is the path of the file containing the CQL statements to
execute. If not absolute, the path is interpreted relative to the current working directory. The tilde shorthand
notation ('~/dir') is supported for referring to the home directory.
The documentation of the original SOURCE command is available:
| Constructor and Description |
|---|
SourceCommandExecutor(String filename)
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.