public abstract class AbstractCqlExecMojo extends AbstractCassandraMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
cqlEncoding
Charset used when loading CQL files.
|
protected boolean |
useCqlLexer
Should we use the CqlLexer when loading the cql file.
|
addMainClasspath, addTestClasspath, cassandraDir, jmxPort, keyspace, listenAddress, logLevel, maxMemory, nativeTransportPort, project, rpcAddress, rpcPort, session, skip, startNativeTransport, stopKey, stopPort, storagePort, systemPropertyVariables| Constructor and Description |
|---|
AbstractCqlExecMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.cassandra.thrift.CqlResult> |
executeCql(String statements) |
protected String |
readFile(File file) |
protected static String[] |
splitStatementsUsingCqlLexer(String statements)
Best effort to somewhat parse the cql input instead of just splitting on ; which
breaks badly if you have ; in strings or comments.
|
createCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLine, useJdk11OptionsgetLog, getPluginContext, setLog, setPluginContext@Parameter(property="cql.encoding") protected String cqlEncoding
@Parameter(defaultValue="false") protected boolean useCqlLexer
protected String readFile(File file) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected List<org.apache.cassandra.thrift.CqlResult> executeCql(String statements) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2011–2022 MojoHaus. All rights reserved.