@FunctionalInterface public interface CqlDataSet extends CqlScript
CqlDataSet represents the set of CqlScript.CqlScript,
DefaultCqlDataSet| Modifier and Type | Method and Description |
|---|---|
default void |
forEachScript(Consumer<? super CqlScript> callback)
Performs the given
callback for each script of the CqlDataSet. |
List<? extends CqlScript> |
getScripts()
Gets
CQL scripts. |
default List<String> |
getStatements()
Gets
CQL statements. |
static CqlDataSet |
ofClassPaths(Charset charset,
String... names)
Creates
CqlDataSet with the specified resource names and charset. |
static CqlDataSet |
ofClassPaths(String... names)
Creates
CqlDataSet with the specified resource names and default charset. |
static CqlDataSet |
ofResources(Charset charset,
Resource... resources)
Creates
CqlDataSet with the specified resources and charset. |
static CqlDataSet |
ofResources(Resource... resources)
Creates
CqlDataSet with the specified resources and default charset. |
static CqlDataSet |
ofScripts(CqlScript... scripts)
Creates
CqlDataSet with the specified CQL scripts. |
forEachStatement, ofClassPath, ofClassPath, ofResource, ofResourcestatic CqlDataSet ofClassPaths(String... names)
CqlDataSet with the specified resource names and default charset.names - the resource namesCqlDataSetstatic CqlDataSet ofClassPaths(Charset charset, String... names)
CqlDataSet with the specified resource names and charset.names - the resource namescharset - the encoding to useCqlDataSetstatic CqlDataSet ofResources(Resource... resources)
CqlDataSet with the specified resources and default charset.resources - the resources to useCqlDataSetstatic CqlDataSet ofResources(Charset charset, Resource... resources)
CqlDataSet with the specified resources and charset.resources - the resources to usecharset - the encoding to useCqlDataSetstatic CqlDataSet ofScripts(CqlScript... scripts)
CqlDataSet with the specified CQL scripts.scripts - the scripts to useCqlDataSetdefault void forEachScript(Consumer<? super CqlScript> callback)
callback for each script of the CqlDataSet.callback - The action to be performed for each scriptdefault List<String> getStatements()
CqlScriptCQL statements.getStatements in interface CqlScriptCQL statements (never null)Copyright © 2023. All rights reserved.