public class ScriptExecutor extends Object
| Constructor and Description |
|---|
ScriptExecutor(com.datastax.driver.core.Session session) |
| Modifier and Type | Method and Description |
|---|---|
protected List<com.datastax.driver.core.SimpleStatement> |
buildStatements(List<String> lines) |
com.datastax.driver.core.ResultSet |
execute(com.datastax.driver.core.Statement statement)
Execute a CQL statement
|
com.datastax.driver.core.ResultSet |
execute(String statement)
Execute a plain CQL string statement
|
AchillesFuture<com.datastax.driver.core.ResultSet> |
executeAsync(com.datastax.driver.core.Statement statement)
Execute a CQL statement asynchronously
|
AchillesFuture<com.datastax.driver.core.ResultSet> |
executeAsync(String statement)
Execute a plain CQL string statement asynchronously
|
void |
executeScript(String scriptLocation)
Execute a CQL script file located in the class path
|
protected List<String> |
loadScriptAsLines(String scriptLocation) |
public void executeScript(String scriptLocation)
scriptLocation - the location of the script file in the class pathpublic com.datastax.driver.core.ResultSet execute(String statement)
statement - plain CQL string statementpublic com.datastax.driver.core.ResultSet execute(com.datastax.driver.core.Statement statement)
statement - CQL statementpublic AchillesFuture<com.datastax.driver.core.ResultSet> executeAsync(String statement)
statement - the CQL string statementpublic AchillesFuture<com.datastax.driver.core.ResultSet> executeAsync(com.datastax.driver.core.Statement statement)
statement - CQL statementCopyright © 2012-2016. All Rights Reserved.