@FunctionalInterface public interface CqlScript
CqlScript interface that loads CQL statements from various sources.CqlDataSet,
AbstractCqlScript,
ResourceCqlScript,
StringCqlScript,
ofClassPath(String)| Modifier and Type | Method and Description |
|---|---|
default void |
forEachStatement(Consumer<? super String> callback)
Performs the provided
callback for each statement of the CqlScript. |
List<String> |
getStatements()
Gets
CQL statements. |
static CqlScript |
ofClassPath(String name)
Creates
CqlScript with the specified resource name and default charset. |
static CqlScript |
ofClassPath(String name,
Charset charset)
Creates
CqlScript with the specified resource name and charset. |
static CqlScript |
ofResource(Resource resource)
Creates
CqlScript with the specified resource and default charset. |
static CqlScript |
ofResource(Resource resource,
Charset charset)
Creates
CqlScript with the specified resources and charset. |
static CqlScript ofClassPath(String name)
CqlScript with the specified resource name and default charset.name - the resource nameCqlScriptstatic CqlScript ofClassPath(String name, Charset charset)
CqlScript with the specified resource name and charset.name - the resource namecharset - the encoding to useCqlScriptstatic CqlScript ofResource(Resource resource)
CqlScript with the specified resource and default charset.resource - the resource to useCqlScriptstatic CqlScript ofResource(Resource resource, Charset charset)
CqlScript with the specified resources and charset.resource - the resource to usecharset - the encoding to useCqlScriptdefault void forEachStatement(Consumer<? super String> callback)
callback for each statement of the CqlScript.callback - The action to be performed for each statementCopyright © 2023. All rights reserved.