Class CreateViewStatement

java.lang.Object
org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
org.apache.cassandra.cql3.statements.schema.CreateViewStatement
All Implemented Interfaces:
CQLStatement, CQLStatement.SingleKeyspaceCqlStatement, SchemaTransformation

public final class CreateViewStatement extends AlterSchemaStatement
  • Constructor Details

  • Method Details

    • validate

      public void validate(ClientState state)
      Description copied from interface: CQLStatement
      Perform additional validation required by the statment. To be overriden by subclasses if needed.
      Specified by:
      validate in interface CQLStatement
      Overrides:
      validate in class AlterSchemaStatement
      Parameters:
      state - the current client state
    • apply

      public Keyspaces apply(Keyspaces schema)
      Description copied from interface: SchemaTransformation
      Apply a statement transformation to a schema snapshot.

      Implementing methods should be side-effect free (outside of throwing exceptions if the transformation cannot be successfully applied to the provided schema).

      Parameters:
      schema - Keyspaces to base the transformation on
      Returns:
      Keyspaces transformed by the statement
    • authorize

      public void authorize(ClientState client)
      Description copied from interface: CQLStatement
      Perform any access verification necessary for the statement.
      Parameters:
      client - the current client state
    • getAuditLogContext

      public AuditLogContext getAuditLogContext()
      Description copied from interface: CQLStatement
      Provides the context needed for audit logging statements.
    • toString

      public String toString()
      Overrides:
      toString in class Object