Interface CqlDataSet
-
- All Superinterfaces:
CqlScript
- All Known Implementing Classes:
DefaultCqlDataSet
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CqlDataSet extends CqlScript
CqlDataSetrepresents the set ofCqlScript.- Since:
- 4.0.1
- Author:
- Dmytro Nosan
- See Also:
CqlScript,DefaultCqlDataSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCqlDataSet.BuilderACqlDataSetbuilder.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CqlDataSet.Builderbuilder()Creates a newCqlDataSet.Builder.default voidforEachScript(Consumer<? super CqlScript> callback)Performs the givencallbackfor each script of theCqlDataSet.List<? extends CqlScript>getScripts()GetsCQLscripts.default List<String>getStatements()GetsCQLstatements.static CqlDataSetofClassPaths(String... names)CreatesCqlDataSetwith the specified resource names and default charset.static CqlDataSetofClassPaths(Charset charset, String... names)CreatesCqlDataSetwith the specified resource names and charset.static CqlDataSetofResources(Resource... resources)CreatesCqlDataSetwith the specified resources and default charset.static CqlDataSetofResources(Charset charset, Resource... resources)CreatesCqlDataSetwith the specified resources and charset.static CqlDataSetofScripts(CqlScript... scripts)CreatesCqlDataSetwith the specified CQL scripts.-
Methods inherited from interface com.github.nosan.embedded.cassandra.cql.CqlScript
forEachStatement
-
-
-
-
Method Detail
-
builder
static CqlDataSet.Builder builder()
Creates a newCqlDataSet.Builder.- Returns:
- a new
CqlDataSet.Builder - Since:
- 5.0.0
-
ofClassPaths
static CqlDataSet ofClassPaths(String... names)
CreatesCqlDataSetwith the specified resource names and default charset.- Parameters:
names- the resource names- Returns:
- a new
CqlDataSet
-
ofClassPaths
static CqlDataSet ofClassPaths(Charset charset, String... names)
CreatesCqlDataSetwith the specified resource names and charset.- Parameters:
names- the resource namescharset- the encoding to use- Returns:
- a new
CqlDataSet
-
ofResources
static CqlDataSet ofResources(Resource... resources)
CreatesCqlDataSetwith the specified resources and default charset.- Parameters:
resources- the resources to use- Returns:
- a new
CqlDataSet
-
ofResources
static CqlDataSet ofResources(Charset charset, Resource... resources)
CreatesCqlDataSetwith the specified resources and charset.- Parameters:
resources- the resources to usecharset- the encoding to use- Returns:
- a new
CqlDataSet
-
ofScripts
static CqlDataSet ofScripts(CqlScript... scripts)
CreatesCqlDataSetwith the specified CQL scripts.- Parameters:
scripts- the scripts to use- Returns:
- a new
CqlDataSet
-
forEachScript
default void forEachScript(Consumer<? super CqlScript> callback)
Performs the givencallbackfor each script of theCqlDataSet.- Parameters:
callback- The action to be performed for each script
-
getStatements
default List<String> getStatements()
Description copied from interface:CqlScriptGetsCQLstatements.- Specified by:
getStatementsin interfaceCqlScript- Returns:
CQLstatements (never null)
-
-