public class org.apache.cassandra.cql3.statements.CreateKeyspaceStatement extends org.apache.cassandra.cql3.statements.SchemaAlteringStatement
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.cql3.statements.CreateKeyspaceStatement
  super_class: org.apache.cassandra.cql3.statements.SchemaAlteringStatement
{
  private static final java.util.regex.Pattern PATTERN_WORD_CHARS;
    descriptor: Ljava/util/regex/Pattern;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private final java.lang.String name;
    descriptor: Ljava/lang/String;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.apache.cassandra.cql3.statements.KeyspaceAttributes attrs;
    descriptor: Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean ifNotExists;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 36
            ldc "\\w+"
            invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
            putstatic org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.PATTERN_WORD_CHARS:Ljava/util/regex/Pattern;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(java.lang.String, org.apache.cassandra.cql3.statements.KeyspaceAttributes, boolean);
    descriptor: (Ljava/lang/String;Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=4, args_size=4
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
        start local 1 // java.lang.String name
        start local 2 // org.apache.cassandra.cql3.statements.KeyspaceAttributes attrs
        start local 3 // boolean ifNotExists
         0: .line 51
            aload 0 /* this */
            invokespecial org.apache.cassandra.cql3.statements.SchemaAlteringStatement.<init>:()V
         1: .line 52
            aload 0 /* this */
            aload 1 /* name */
            putfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
         2: .line 53
            aload 0 /* this */
            aload 2 /* attrs */
            putfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.attrs:Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
         3: .line 54
            aload 0 /* this */
            iload 3 /* ifNotExists */
            putfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.ifNotExists:Z
         4: .line 55
            return
        end local 3 // boolean ifNotExists
        end local 2 // org.apache.cassandra.cql3.statements.KeyspaceAttributes attrs
        end local 1 // java.lang.String name
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;
            0    5     1         name  Ljava/lang/String;
            0    5     2        attrs  Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
            0    5     3  ifNotExists  Z
    MethodParameters:
             Name  Flags
      name         
      attrs        
      ifNotExists  

  public java.lang.String keyspace();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
         0: .line 60
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            areturn
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;

  public void checkAccess(org.apache.cassandra.service.ClientState);
    descriptor: (Lorg/apache/cassandra/service/ClientState;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
        start local 1 // org.apache.cassandra.service.ClientState state
         0: .line 65
            aload 1 /* state */
            getstatic org.apache.cassandra.auth.Permission.CREATE:Lorg/apache/cassandra/auth/Permission;
            invokevirtual org.apache.cassandra.service.ClientState.hasAllKeyspacesAccess:(Lorg/apache/cassandra/auth/Permission;)V
         1: .line 66
            return
        end local 1 // org.apache.cassandra.service.ClientState state
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;
            0    2     1  state  Lorg/apache/cassandra/service/ClientState;
    Exceptions:
      throws org.apache.cassandra.exceptions.UnauthorizedException
    MethodParameters:
       Name  Flags
      state  

  public void validate(org.apache.cassandra.service.ClientState);
    descriptor: (Lorg/apache/cassandra/service/ClientState;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=3, args_size=2
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
        start local 1 // org.apache.cassandra.service.ClientState state
         0: .line 77
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            invokestatic org.apache.cassandra.thrift.ThriftValidation.validateKeyspaceNotSystem:(Ljava/lang/String;)V
         1: .line 80
            getstatic org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.PATTERN_WORD_CHARS:Ljava/util/regex/Pattern;
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
            invokevirtual java.util.regex.Matcher.matches:()Z
            ifne 3
         2: .line 81
            new org.apache.cassandra.exceptions.InvalidRequestException
            dup
            ldc "\"%s\" is not a valid keyspace name"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            invokevirtual java.lang.String.length:()I
            bipush 48
            if_icmple 5
         4: .line 83
            new org.apache.cassandra.exceptions.InvalidRequestException
            dup
            ldc "Keyspace names shouldn't be more than %s characters long (got \"%s\")"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            bipush 48
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 85
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.attrs:Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
            invokevirtual org.apache.cassandra.cql3.statements.KeyspaceAttributes.validate:()V
         6: .line 87
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.attrs:Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
            invokevirtual org.apache.cassandra.cql3.statements.KeyspaceAttributes.getReplicationStrategyClass:()Ljava/lang/String;
            ifnonnull 8
         7: .line 88
            new org.apache.cassandra.exceptions.ConfigurationException
            dup
            ldc "Missing mandatory replication strategy class"
            invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 93
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.attrs:Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
            invokevirtual org.apache.cassandra.cql3.statements.KeyspaceAttributes.asNewKeyspaceParams:()Lorg/apache/cassandra/schema/KeyspaceParams;
            astore 2 /* params */
        start local 2 // org.apache.cassandra.schema.KeyspaceParams params
         9: .line 94
            aload 2 /* params */
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            invokevirtual org.apache.cassandra.schema.KeyspaceParams.validate:(Ljava/lang/String;)V
        10: .line 95
            aload 2 /* params */
            getfield org.apache.cassandra.schema.KeyspaceParams.replication:Lorg/apache/cassandra/schema/ReplicationParams;
            getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
            ldc Lorg/apache/cassandra/locator/LocalStrategy;
            invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
            ifeq 12
        11: .line 96
            new org.apache.cassandra.exceptions.ConfigurationException
            dup
            ldc "Unable to use given strategy class: LocalStrategy is reserved for internal use."
            invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
            athrow
        12: .line 97
      StackMap locals: org.apache.cassandra.schema.KeyspaceParams
      StackMap stack:
            return
        end local 2 // org.apache.cassandra.schema.KeyspaceParams params
        end local 1 // org.apache.cassandra.service.ClientState state
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   13     0    this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;
            0   13     1   state  Lorg/apache/cassandra/service/ClientState;
            9   13     2  params  Lorg/apache/cassandra/schema/KeyspaceParams;
    Exceptions:
      throws org.apache.cassandra.exceptions.RequestValidationException
    MethodParameters:
       Name  Flags
      state  

  public org.apache.cassandra.transport.Event$SchemaChange announceMigration(org.apache.cassandra.service.QueryState, boolean);
    descriptor: (Lorg/apache/cassandra/service/QueryState;Z)Lorg/apache/cassandra/transport/Event$SchemaChange;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
        start local 1 // org.apache.cassandra.service.QueryState queryState
        start local 2 // boolean isLocalOnly
         0: .line 101
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.name:Ljava/lang/String;
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.attrs:Lorg/apache/cassandra/cql3/statements/KeyspaceAttributes;
            invokevirtual org.apache.cassandra.cql3.statements.KeyspaceAttributes.asNewKeyspaceParams:()Lorg/apache/cassandra/schema/KeyspaceParams;
            invokestatic org.apache.cassandra.schema.KeyspaceMetadata.create:(Ljava/lang/String;Lorg/apache/cassandra/schema/KeyspaceParams;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
            astore 3 /* ksm */
        start local 3 // org.apache.cassandra.schema.KeyspaceMetadata ksm
         1: .line 104
            aload 3 /* ksm */
            iload 2 /* isLocalOnly */
            invokestatic org.apache.cassandra.service.MigrationManager.announceNewKeyspace:(Lorg/apache/cassandra/schema/KeyspaceMetadata;Z)V
         2: .line 105
            new org.apache.cassandra.transport.Event$SchemaChange
            dup
            getstatic org.apache.cassandra.transport.Event$SchemaChange$Change.CREATED:Lorg/apache/cassandra/transport/Event$SchemaChange$Change;
            aload 0 /* this */
            invokevirtual org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.keyspace:()Ljava/lang/String;
            invokespecial org.apache.cassandra.transport.Event$SchemaChange.<init>:(Lorg/apache/cassandra/transport/Event$SchemaChange$Change;Ljava/lang/String;)V
         3: areturn
         4: .line 107
      StackMap locals: org.apache.cassandra.cql3.statements.CreateKeyspaceStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.schema.KeyspaceMetadata
      StackMap stack: org.apache.cassandra.exceptions.AlreadyExistsException
            astore 4 /* e */
        start local 4 // org.apache.cassandra.exceptions.AlreadyExistsException e
         5: .line 109
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.ifNotExists:Z
            ifeq 7
         6: .line 110
            aconst_null
            areturn
         7: .line 111
      StackMap locals: org.apache.cassandra.exceptions.AlreadyExistsException
      StackMap stack:
            aload 4 /* e */
            athrow
        end local 4 // org.apache.cassandra.exceptions.AlreadyExistsException e
        end local 3 // org.apache.cassandra.schema.KeyspaceMetadata ksm
        end local 2 // boolean isLocalOnly
        end local 1 // org.apache.cassandra.service.QueryState queryState
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    8     0         this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;
            0    8     1   queryState  Lorg/apache/cassandra/service/QueryState;
            0    8     2  isLocalOnly  Z
            1    8     3          ksm  Lorg/apache/cassandra/schema/KeyspaceMetadata;
            5    8     4            e  Lorg/apache/cassandra/exceptions/AlreadyExistsException;
      Exception table:
        from    to  target  type
           1     3       4  Class org.apache.cassandra.exceptions.AlreadyExistsException
    Exceptions:
      throws org.apache.cassandra.exceptions.RequestValidationException
    MethodParameters:
             Name  Flags
      queryState   
      isLocalOnly  

  protected void grantPermissionsToCreator(org.apache.cassandra.service.QueryState);
    descriptor: (Lorg/apache/cassandra/service/QueryState;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
        start local 1 // org.apache.cassandra.service.QueryState state
         0: .line 119
            aload 1 /* state */
            invokevirtual org.apache.cassandra.service.QueryState.getClientState:()Lorg/apache/cassandra/service/ClientState;
            invokevirtual org.apache.cassandra.service.ClientState.getUser:()Lorg/apache/cassandra/auth/AuthenticatedUser;
            invokevirtual org.apache.cassandra.auth.AuthenticatedUser.getName:()Ljava/lang/String;
            invokestatic org.apache.cassandra.auth.RoleResource.role:(Ljava/lang/String;)Lorg/apache/cassandra/auth/RoleResource;
            astore 2 /* role */
        start local 2 // org.apache.cassandra.auth.RoleResource role
         1: .line 120
            aload 0 /* this */
            invokevirtual org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.keyspace:()Ljava/lang/String;
            invokestatic org.apache.cassandra.auth.DataResource.keyspace:(Ljava/lang/String;)Lorg/apache/cassandra/auth/DataResource;
            astore 3 /* keyspace */
        start local 3 // org.apache.cassandra.auth.DataResource keyspace
         2: .line 121
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAuthorizer:()Lorg/apache/cassandra/auth/IAuthorizer;
            getstatic org.apache.cassandra.auth.AuthenticatedUser.SYSTEM_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
         3: .line 122
            aload 3 /* keyspace */
            invokevirtual org.apache.cassandra.auth.DataResource.applicablePermissions:()Ljava/util/Set;
         4: .line 123
            aload 3 /* keyspace */
         5: .line 124
            aload 2 /* role */
         6: .line 121
            invokeinterface org.apache.cassandra.auth.IAuthorizer.grant:(Lorg/apache/cassandra/auth/AuthenticatedUser;Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/auth/RoleResource;)V
         7: .line 125
            aload 0 /* this */
            invokevirtual org.apache.cassandra.cql3.statements.CreateKeyspaceStatement.keyspace:()Ljava/lang/String;
            invokestatic org.apache.cassandra.auth.FunctionResource.keyspace:(Ljava/lang/String;)Lorg/apache/cassandra/auth/FunctionResource;
            astore 4 /* functions */
        start local 4 // org.apache.cassandra.auth.FunctionResource functions
         8: .line 126
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAuthorizer:()Lorg/apache/cassandra/auth/IAuthorizer;
            getstatic org.apache.cassandra.auth.AuthenticatedUser.SYSTEM_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
         9: .line 127
            aload 4 /* functions */
            invokevirtual org.apache.cassandra.auth.FunctionResource.applicablePermissions:()Ljava/util/Set;
        10: .line 128
            aload 4 /* functions */
        11: .line 129
            aload 2 /* role */
        12: .line 126
            invokeinterface org.apache.cassandra.auth.IAuthorizer.grant:(Lorg/apache/cassandra/auth/AuthenticatedUser;Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/auth/RoleResource;)V
        end local 4 // org.apache.cassandra.auth.FunctionResource functions
        end local 3 // org.apache.cassandra.auth.DataResource keyspace
        end local 2 // org.apache.cassandra.auth.RoleResource role
        13: .line 130
            goto 16
        14: .line 131
      StackMap locals:
      StackMap stack: org.apache.cassandra.exceptions.RequestExecutionException
            astore 2 /* e */
        start local 2 // org.apache.cassandra.exceptions.RequestExecutionException e
        15: .line 133
            new java.lang.RuntimeException
            dup
            aload 2 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // org.apache.cassandra.exceptions.RequestExecutionException e
        16: .line 135
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.apache.cassandra.service.QueryState state
        end local 0 // org.apache.cassandra.cql3.statements.CreateKeyspaceStatement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   17     0       this  Lorg/apache/cassandra/cql3/statements/CreateKeyspaceStatement;
            0   17     1      state  Lorg/apache/cassandra/service/QueryState;
            1   13     2       role  Lorg/apache/cassandra/auth/RoleResource;
            2   13     3   keyspace  Lorg/apache/cassandra/auth/DataResource;
            8   13     4  functions  Lorg/apache/cassandra/auth/FunctionResource;
           15   16     2          e  Lorg/apache/cassandra/exceptions/RequestExecutionException;
      Exception table:
        from    to  target  type
           0    13      14  Class org.apache.cassandra.exceptions.RequestExecutionException
    MethodParameters:
       Name  Flags
      state  
}
SourceFile: "CreateKeyspaceStatement.java"
InnerClasses:
  public SchemaChange = org.apache.cassandra.transport.Event$SchemaChange of org.apache.cassandra.transport.Event
  public final Change = org.apache.cassandra.transport.Event$SchemaChange$Change of org.apache.cassandra.transport.Event$SchemaChange