public class org.apache.cassandra.cql3.statements.DropIndexStatement 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.DropIndexStatement
super_class: org.apache.cassandra.cql3.statements.SchemaAlteringStatement
{
public final java.lang.String indexName;
descriptor: Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final boolean ifExists;
descriptor: Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public void <init>(org.apache.cassandra.cql3.IndexName, boolean);
descriptor: (Lorg/apache/cassandra/cql3/IndexName;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
invokevirtual org.apache.cassandra.cql3.IndexName.getCfName:()Lorg/apache/cassandra/cql3/CFName;
invokespecial org.apache.cassandra.cql3.statements.SchemaAlteringStatement.<init>:(Lorg/apache/cassandra/cql3/CFName;)V
1: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.IndexName.getIdx:()Ljava/lang/String;
putfield org.apache.cassandra.cql3.statements.DropIndexStatement.indexName:Ljava/lang/String;
2: aload 0
iload 2
putfield org.apache.cassandra.cql3.statements.DropIndexStatement.ifExists:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
0 4 1 indexName Lorg/apache/cassandra/cql3/IndexName;
0 4 2 ifExists Z
MethodParameters:
Name Flags
indexName
ifExists
public java.lang.String columnFamily();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.lookupIndexedTable:()Lorg/apache/cassandra/config/CFMetaData;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
2: aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
1 4 1 cfm Lorg/apache/cassandra/config/CFMetaData;
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 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.lookupIndexedTable:()Lorg/apache/cassandra/config/CFMetaData;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 1
aload 2
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 2
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
getstatic org.apache.cassandra.auth.Permission.ALTER:Lorg/apache/cassandra/auth/Permission;
invokevirtual org.apache.cassandra.service.ClientState.hasColumnFamilyAccess:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/auth/Permission;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
0 5 1 state Lorg/apache/cassandra/service/ClientState;
1 5 2 cfm Lorg/apache/cassandra/config/CFMetaData;
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/DropIndexStatement;
0 1 1 state Lorg/apache/cassandra/service/ClientState;
MethodParameters:
Name Flags
state
public org.apache.cassandra.transport.messages.ResultMessage execute(org.apache.cassandra.service.QueryState, org.apache.cassandra.cql3.QueryOptions, long);
descriptor: (Lorg/apache/cassandra/service/QueryState;Lorg/apache/cassandra/cql3/QueryOptions;J)Lorg/apache/cassandra/transport/messages/ResultMessage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iconst_0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.announceMigration:(Lorg/apache/cassandra/service/QueryState;Z)Lorg/apache/cassandra/transport/Event$SchemaChange;
astore 5
start local 5 1: aload 5
ifnonnull 2
aconst_null
goto 3
StackMap locals: org.apache.cassandra.transport.Event$SchemaChange
StackMap stack:
2: new org.apache.cassandra.transport.messages.ResultMessage$SchemaChange
dup
aload 5
invokespecial org.apache.cassandra.transport.messages.ResultMessage$SchemaChange.<init>:(Lorg/apache/cassandra/transport/Event$SchemaChange;)V
StackMap locals:
StackMap stack: org.apache.cassandra.transport.messages.ResultMessage$SchemaChange
3: areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
0 4 1 state Lorg/apache/cassandra/service/QueryState;
0 4 2 options Lorg/apache/cassandra/cql3/QueryOptions;
0 4 3 queryStartNanoTime J
1 4 5 ce Lorg/apache/cassandra/transport/Event$SchemaChange;
Exceptions:
throws org.apache.cassandra.exceptions.RequestValidationException
MethodParameters:
Name Flags
state
options
queryStartNanoTime
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=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.lookupIndexedTable:()Lorg/apache/cassandra/config/CFMetaData;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.copy:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 4: aload 4
aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.getIndexes:()Lorg/apache/cassandra/schema/Indexes;
aload 0
getfield org.apache.cassandra.cql3.statements.DropIndexStatement.indexName:Ljava/lang/String;
invokevirtual org.apache.cassandra.schema.Indexes.without:(Ljava/lang/String;)Lorg/apache/cassandra/schema/Indexes;
invokevirtual org.apache.cassandra.config.CFMetaData.indexes:(Lorg/apache/cassandra/schema/Indexes;)Lorg/apache/cassandra/config/CFMetaData;
pop
5: aload 4
iload 2
invokestatic org.apache.cassandra.service.MigrationManager.announceColumnFamilyUpdate:(Lorg/apache/cassandra/config/CFMetaData;Z)V
6: new org.apache.cassandra.transport.Event$SchemaChange
dup
getstatic org.apache.cassandra.transport.Event$SchemaChange$Change.UPDATED:Lorg/apache/cassandra/transport/Event$SchemaChange$Change;
getstatic org.apache.cassandra.transport.Event$SchemaChange$Target.TABLE:Lorg/apache/cassandra/transport/Event$SchemaChange$Target;
aload 3
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 3
getfield org.apache.cassandra.config.CFMetaData.cfName: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
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
0 7 1 queryState Lorg/apache/cassandra/service/QueryState;
0 7 2 isLocalOnly Z
1 7 3 cfm Lorg/apache/cassandra/config/CFMetaData;
4 7 4 updatedCfm Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.ConfigurationException
MethodParameters:
Name Flags
queryState
isLocalOnly
private org.apache.cassandra.config.CFMetaData lookupIndexedTable();
descriptor: ()Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.keyspace:()Ljava/lang/String;
invokevirtual org.apache.cassandra.config.Schema.getKSMetaData:(Ljava/lang/String;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new org.apache.cassandra.db.KeyspaceNotDefinedException
dup
new java.lang.StringBuilder
dup
ldc "Keyspace "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.keyspace:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.db.KeyspaceNotDefinedException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.schema.KeyspaceMetadata
StackMap stack:
aload 1
aload 0
getfield org.apache.cassandra.cql3.statements.DropIndexStatement.indexName:Ljava/lang/String;
invokevirtual org.apache.cassandra.schema.KeyspaceMetadata.findIndexedTable:(Ljava/lang/String;)Ljava/util/Optional;
4: aload 0
invokedynamic get(Lorg/apache/cassandra/cql3/statements/DropIndexStatement;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/apache/cassandra/cql3/statements/DropIndexStatement.lambda$0()Lorg/apache/cassandra/config/CFMetaData; (7)
()Lorg/apache/cassandra/config/CFMetaData;
invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast org.apache.cassandra.config.CFMetaData
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
1 6 1 ksm Lorg/apache/cassandra/schema/KeyspaceMetadata;
private org.apache.cassandra.config.CFMetaData lambda$0();
descriptor: ()Lorg/apache/cassandra/config/CFMetaData;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cql3.statements.DropIndexStatement.ifExists:Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Index '%s' could not be found in any of the tables of keyspace '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 0
getfield org.apache.cassandra.cql3.statements.DropIndexStatement.indexName:Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.DropIndexStatement.keyspace:()Ljava/lang/String;
aastore
4: 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 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/cql3/statements/DropIndexStatement;
}
SourceFile: "DropIndexStatement.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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
public SchemaChange = org.apache.cassandra.transport.messages.ResultMessage$SchemaChange of org.apache.cassandra.transport.messages.ResultMessage