Package org.codehaus.mojo.cassandra
Class CqlExecCassandraMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.cassandra.AbstractCassandraMojo
org.codehaus.mojo.cassandra.AbstractCqlExecMojo
org.codehaus.mojo.cassandra.CqlExecCassandraMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="cql-exec",
threadSafe=true,
defaultPhase=PRE_INTEGRATION_TEST)
public class CqlExecCassandraMojo
extends AbstractCqlExecMojo
Executes cql statements from maven.
- Author:
- zznate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringExpected type of the column nameprotected FileThe CQL script which will be executedprotected StringThe CQL statement to execute singularlyprotected StringExpected type of the column valueprotected StringExpected type of the keyFields inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
cqlEncoding, useCqlLexerFields inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
addMainClasspath, addTestClasspath, cassandraDir, jmxPort, keyspace, listenAddress, logLevel, maxMemory, nativeTransportPort, project, rpcAddress, rpcPort, session, skip, startNativeTransport, stopKey, stopPort, storagePort, systemPropertyVariablesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
executeCql, readFile, splitStatementsUsingCqlLexerMethods inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
createCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLine, useJdk11OptionsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
cqlScript
@Parameter(property="cassandra.cql.script", defaultValue="${basedir}/src/cassandra/cql/exec.cql") protected File cqlScriptThe CQL script which will be executed -
cqlStatement
The CQL statement to execute singularly -
defaultValidator
Expected type of the column value -
keyValidator
Expected type of the key -
comparator
Expected type of the column name
-
-
Constructor Details
-
CqlExecCassandraMojo
public CqlExecCassandraMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-