Class CreateViewStatement

    • Constructor Detail

      • CreateViewStatement

        public CreateViewStatement​(java.lang.String keyspaceName,
                                   java.lang.String tableName,
                                   java.lang.String viewName,
                                   java.util.List<RawSelector> rawColumns,
                                   java.util.List<ColumnIdentifier> partitionKeyColumns,
                                   java.util.List<ColumnIdentifier> clusteringColumns,
                                   WhereClause whereClause,
                                   java.util.LinkedHashMap<ColumnIdentifier,​java.lang.Boolean> clusteringOrder,
                                   TableAttributes attrs,
                                   boolean ifNotExists)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object