public CassandraEmbeddedServerBuilder withScriptTemplate ( String scriptTemplateLocation , Map < String , Object > values ) { Validator . validateNotBlank ( scriptTemplateLocation , "The script template should not be blank while executing CassandraEmbeddedServerBuilder.withScriptTemplate()" ) ; Validator . validateNotEmpty ( values , "The template values should not be empty while executing CassandraEmbeddedServerBuilder.withScriptTemplate()" ) ; scriptTemplates . put ( scriptTemplateLocation . trim ( ) , values ) ; return this ; }
Load an CQL script template in the class path inject the values into the template to produce the final script and execute it upon initialization of the embedded Cassandra server