Interface CqlDataSet.Builder
-
- Enclosing interface:
- CqlDataSet
public static interface CqlDataSet.BuilderA builder for constructing instances ofCqlDataSet.Provides methods for adding individual scripts, resources, and static statements to the dataset.
- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CqlDataSet.BuilderaddResource(Resource resource)Adds aResourcewith the default charset to the builder.CqlDataSet.BuilderaddResource(Resource resource, Charset charset)CqlDataSet.BuilderaddScript(CqlScript script)Adds aCqlScriptto the builder.CqlDataSet.BuilderaddScript(String script)Adds a plain CQL script string to the builder.CqlDataSet.BuilderaddStatements(String... statements)Adds one or more static CQL statements to the builder.CqlDataSet.BuilderaddStatements(List<? extends String> statements)Adds a list of static CQL statements to the builder.CqlDataSetbuild()Builds and returns aCqlDataSetinstance.
-
-
-
Method Detail
-
addScript
CqlDataSet.Builder addScript(CqlScript script)
Adds aCqlScriptto the builder.- Parameters:
script- theCqlScriptto add (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifscriptisnull
-
addScript
CqlDataSet.Builder addScript(String script)
Adds a plain CQL script string to the builder.- Parameters:
script- the plain string script to add (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifscriptisnull
-
addResource
CqlDataSet.Builder addResource(Resource resource)
Adds aResourcewith the default charset to the builder.- Parameters:
resource- theResourceto add (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifresourceisnull
-
addResource
CqlDataSet.Builder addResource(Resource resource, Charset charset)
- Parameters:
resource- theResourceto add (must not benull)charset- theCharsetto use (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifresourceorcharsetisnull
-
addStatements
CqlDataSet.Builder addStatements(String... statements)
Adds one or more static CQL statements to the builder.- Parameters:
statements- the CQL statements to add (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifstatementsisnull
-
addStatements
CqlDataSet.Builder addStatements(List<? extends String> statements)
Adds a list of static CQL statements to the builder.- Parameters:
statements- the list of CQL statements to add (must not benull)- Returns:
- this builder
- Throws:
NullPointerException- ifstatementsisnull
-
build
CqlDataSet build()
Builds and returns aCqlDataSetinstance.- Returns:
- a new
CqlDataSet
-
-