Class AbstractCqlScript

  • All Implemented Interfaces:
    CqlScript
    Direct Known Subclasses:
    ResourceCqlScript, StringCqlScript

    public abstract class AbstractCqlScript
    extends Object
    implements CqlScript
    An abstract implementation of the CqlScript interface 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 Detail

      • getStatements

        public final List<String> getStatements()
        Retrieves the list of statements parsed from the CQL script.
        Specified by:
        getStatements in interface CqlScript
        Returns:
        the list of parsed CQL statements, or an empty list if the script is null, empty, or whitespace-only