Class AbstractCqlScript
- java.lang.Object
-
- com.github.nosan.embedded.cassandra.cql.AbstractCqlScript
-
- All Implemented Interfaces:
CqlScript
- Direct Known Subclasses:
ResourceCqlScript,StringCqlScript
public abstract class AbstractCqlScript extends Object implements CqlScript
An abstract implementation of theCqlScriptinterface that facilitates parsing a CQL (Cassandra Query Language) script into individual statements.This class provides the base functionality for handling CQL scripts by converting them into a list of statements. The actual script content is determined by the implementation of the
getScript()method in subclasses.Subclasses need only to provide the actual CQL script content by implementing the
getScript()method.- Since:
- 4.0.0
- Author:
- Dmytro Nosan
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getStatements()Retrieves the list of statements parsed from the CQL script.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.nosan.embedded.cassandra.cql.CqlScript
forEachStatement
-
-
-
-
Method Detail
-
getStatements
public final List<String> getStatements()
Retrieves the list of statements parsed from the CQL script.- Specified by:
getStatementsin interfaceCqlScript- Returns:
- the list of parsed CQL statements, or an empty list if the script is null, empty, or whitespace-only
-
-