public class org.apache.cassandra.cql3.statements.DropTableStatement 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.DropTableStatement
super_class: org.apache.cassandra.cql3.statements.SchemaAlteringStatement
{
private final boolean ifExists;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.apache.cassandra.cql3.CFName, boolean);
descriptor: (Lorg/apache/cassandra/cql3/CFName;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.apache.cassandra.cql3.statements.SchemaAlteringStatement.<init>:(Lorg/apache/cassandra/cql3/CFName;)V
1: aload 0
iload 2
putfield org.apache.cassandra.cql3.statements.DropTableStatement.ifExists:Z
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/statements/DropTableStatement;
0 3 1 name Lorg/apache/cassandra/cql3/CFName;
0 3 2 ifExists Z
MethodParameters:
Name Flags
name
ifExists
public void checkAccess(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.columnFamily:()Ljava/lang/String;
getstatic org.apache.cassandra.auth.Permission.DROP:Lorg/apache/cassandra/auth/Permission;
invokevirtual org.apache.cassandra.service.ClientState.hasColumnFamilyAccess:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/auth/Permission;)V
1: goto 5
2: StackMap locals:
StackMap stack: org.apache.cassandra.exceptions.InvalidRequestException
astore 2
start local 2 3: aload 0
getfield org.apache.cassandra.cql3.statements.DropTableStatement.ifExists:Z
ifne 5
4: aload 2
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/cql3/statements/DropTableStatement;
0 6 1 state Lorg/apache/cassandra/service/ClientState;
3 5 2 e Lorg/apache/cassandra/exceptions/InvalidRequestException;
Exception table:
from to target type
0 1 2 Class org.apache.cassandra.exceptions.InvalidRequestException
Exceptions:
throws org.apache.cassandra.exceptions.UnauthorizedException, org.apache.cassandra.exceptions.InvalidRequestException
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=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/DropTableStatement;
0 1 1 state Lorg/apache/cassandra/service/ClientState;
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=7, locals=9, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
invokevirtual org.apache.cassandra.config.Schema.getKSMetaData:(Ljava/lang/String;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Cannot drop table in unknown keyspace '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.schema.KeyspaceMetadata
StackMap stack:
aload 3
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.columnFamily:()Ljava/lang/String;
invokevirtual org.apache.cassandra.schema.KeyspaceMetadata.getTableOrViewNullable:(Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 4: aload 4
ifnull 22
5: aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.isView:()Z
ifeq 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot use DROP TABLE on Materialized View"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
iconst_0
istore 5
start local 5 8: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 9: aload 3
getfield org.apache.cassandra.schema.KeyspaceMetadata.views:Lorg/apache/cassandra/schema/Views;
invokevirtual org.apache.cassandra.schema.Views.iterator:()Ljava/util/Iterator;
astore 8
goto 16
StackMap locals: org.apache.cassandra.cql3.statements.DropTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.schema.KeyspaceMetadata org.apache.cassandra.config.CFMetaData int java.lang.StringBuilder top java.util.Iterator
StackMap stack:
10: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
astore 7
start local 7 11: aload 7
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
aload 4
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ifeq 16
12: iload 5
ifeq 14
13: aload 6
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: StackMap locals: org.apache.cassandra.cql3.statements.DropTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.schema.KeyspaceMetadata org.apache.cassandra.config.CFMetaData int java.lang.StringBuilder org.apache.cassandra.config.ViewDefinition java.util.Iterator
StackMap stack:
iconst_1
istore 5
15: aload 6
aload 7
getfield org.apache.cassandra.config.ViewDefinition.viewName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 16: StackMap locals: org.apache.cassandra.cql3.statements.DropTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.schema.KeyspaceMetadata org.apache.cassandra.config.CFMetaData int java.lang.StringBuilder top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
17: iload 5
ifeq 22
18: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot drop table when materialized views still depend on it (%s.{%s})"
iconst_2
anewarray java.lang.Object
dup
iconst_0
19: aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
aastore
dup
iconst_1
20: aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
21: 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
end local 6 end local 5 22: StackMap locals: org.apache.cassandra.cql3.statements.DropTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.schema.KeyspaceMetadata org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.columnFamily:()Ljava/lang/String;
iload 2
invokestatic org.apache.cassandra.service.MigrationManager.announceColumnFamilyDrop:(Ljava/lang/String;Ljava/lang/String;Z)V
23: new org.apache.cassandra.transport.Event$SchemaChange
dup
getstatic org.apache.cassandra.transport.Event$SchemaChange$Change.DROPPED:Lorg/apache/cassandra/transport/Event$SchemaChange$Change;
getstatic org.apache.cassandra.transport.Event$SchemaChange$Target.TABLE:Lorg/apache/cassandra/transport/Event$SchemaChange$Target;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropTableStatement.columnFamily:()Ljava/lang/String;
invokespecial org.apache.cassandra.transport.Event$SchemaChange.<init>:(Lorg/apache/cassandra/transport/Event$SchemaChange$Change;Lorg/apache/cassandra/transport/Event$SchemaChange$Target;Ljava/lang/String;Ljava/lang/String;)V
24: areturn
end local 4 end local 3 25: StackMap locals: org.apache.cassandra.cql3.statements.DropTableStatement org.apache.cassandra.service.QueryState int
StackMap stack: org.apache.cassandra.exceptions.ConfigurationException
astore 3
start local 3 26: aload 0
getfield org.apache.cassandra.cql3.statements.DropTableStatement.ifExists:Z
ifeq 28
27: aconst_null
areturn
28: StackMap locals: org.apache.cassandra.exceptions.ConfigurationException
StackMap stack:
aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/apache/cassandra/cql3/statements/DropTableStatement;
0 29 1 queryState Lorg/apache/cassandra/service/QueryState;
0 29 2 isLocalOnly Z
1 25 3 ksm Lorg/apache/cassandra/schema/KeyspaceMetadata;
4 25 4 cfm Lorg/apache/cassandra/config/CFMetaData;
8 22 5 rejectDrop Z
9 22 6 messageBuilder Ljava/lang/StringBuilder;
11 16 7 def Lorg/apache/cassandra/config/ViewDefinition;
26 29 3 e Lorg/apache/cassandra/exceptions/ConfigurationException;
Exception table:
from to target type
0 24 25 Class org.apache.cassandra.exceptions.ConfigurationException
Exceptions:
throws org.apache.cassandra.exceptions.ConfigurationException
MethodParameters:
Name Flags
queryState
isLocalOnly
}
SourceFile: "DropTableStatement.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
public final Target = org.apache.cassandra.transport.Event$SchemaChange$Target of org.apache.cassandra.transport.Event$SchemaChange