public class org.apache.cassandra.cql3.statements.AlterTableStatement 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.AlterTableStatement
super_class: org.apache.cassandra.cql3.statements.SchemaAlteringStatement
{
public final org.apache.cassandra.cql3.statements.AlterTableStatement$Type oType;
descriptor: Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final org.apache.cassandra.cql3.statements.TableAttributes attrs;
descriptor: Lorg/apache/cassandra/cql3/statements/TableAttributes;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<org.apache.cassandra.config.ColumnDefinition$Raw, org.apache.cassandra.config.ColumnDefinition$Raw> renames;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/apache/cassandra/config/ColumnDefinition$Raw;Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;
private final java.util.List<org.apache.cassandra.cql3.statements.AlterTableStatementColumn> colNameList;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/cql3/statements/AlterTableStatementColumn;>;
private final java.lang.Long deleteTimestamp;
descriptor: Ljava/lang/Long;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$cql3$statements$AlterTableStatement$Type;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/cql3/statements/AlterTableStatement;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.cql3.CFName, org.apache.cassandra.cql3.statements.AlterTableStatement$Type, java.util.List<org.apache.cassandra.cql3.statements.AlterTableStatementColumn>, org.apache.cassandra.cql3.statements.TableAttributes, java.util.Map<org.apache.cassandra.config.ColumnDefinition$Raw, org.apache.cassandra.config.ColumnDefinition$Raw>, java.lang.Long);
descriptor: (Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;Ljava/util/List;Lorg/apache/cassandra/cql3/statements/TableAttributes;Ljava/util/Map;Ljava/lang/Long;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
invokespecial org.apache.cassandra.cql3.statements.SchemaAlteringStatement.<init>:(Lorg/apache/cassandra/cql3/CFName;)V
1: aload 0
aload 2
putfield org.apache.cassandra.cql3.statements.AlterTableStatement.oType:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
2: aload 0
aload 3
putfield org.apache.cassandra.cql3.statements.AlterTableStatement.colNameList:Ljava/util/List;
3: aload 0
aload 4
putfield org.apache.cassandra.cql3.statements.AlterTableStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
4: aload 0
aload 5
putfield org.apache.cassandra.cql3.statements.AlterTableStatement.renames:Ljava/util/Map;
5: aload 0
aload 6
putfield org.apache.cassandra.cql3.statements.AlterTableStatement.deleteTimestamp:Ljava/lang/Long;
6: return
end local 6 end local 5 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/AlterTableStatement;
0 7 1 name Lorg/apache/cassandra/cql3/CFName;
0 7 2 type Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
0 7 3 colDataList Ljava/util/List<Lorg/apache/cassandra/cql3/statements/AlterTableStatementColumn;>;
0 7 4 attrs Lorg/apache/cassandra/cql3/statements/TableAttributes;
0 7 5 renames Ljava/util/Map<Lorg/apache/cassandra/config/ColumnDefinition$Raw;Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;
0 7 6 deleteTimestamp Ljava/lang/Long;
Signature: (Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;Ljava/util/List<Lorg/apache/cassandra/cql3/statements/AlterTableStatementColumn;>;Lorg/apache/cassandra/cql3/statements/TableAttributes;Ljava/util/Map<Lorg/apache/cassandra/config/ColumnDefinition$Raw;Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;Ljava/lang/Long;)V
MethodParameters:
Name Flags
name
type
colDataList
attrs
renames
deleteTimestamp
public void checkAccess(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.columnFamily:()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
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/AlterTableStatement;
0 2 1 state Lorg/apache/cassandra/service/ClientState;
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/AlterTableStatement;
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=8, locals=22, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 3
start local 3 1: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isView:()Z
ifeq 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot use ALTER TABLE on Materialized View"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aconst_null
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aconst_null
astore 7
start local 7 6: iconst_0
istore 8
start local 8 7: aconst_null
astore 9
start local 9 8: aconst_null
astore 10
start local 10 9: aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.db.view.View.findAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Iterable;
astore 11
start local 11 10: invokestatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$cql3$statements$AlterTableStatement$Type:()[I
aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.oType:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iaload
tableswitch { // 1 - 6
1: 12
2: 11
3: 77
4: 118
5: 122
6: 133
default: 152
}
11: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData top org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Altering of types is not allowed"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isDense:()Z
ifeq 14
13: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot add new column to a COMPACT STORAGE table"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.copy:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 15: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.colNameList:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 75
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Iterator
StackMap stack:
16: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.statements.AlterTableStatementColumn
astore 12
start local 12 17: aload 12
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatementColumn.getColumnName:()Lorg/apache/cassandra/config/ColumnDefinition$Raw;
aload 4
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 5
18: aload 4
aload 5
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 6
19: aload 12
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatementColumn.getColumnType:()Lorg/apache/cassandra/cql3/CQL3Type$Raw;
astore 7
20: getstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$assertionsDisabled:Z
ifne 21
aload 7
ifnonnull 21
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
21: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator
StackMap stack:
aload 12
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatementColumn.getStaticType:()Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 8
22: aload 7
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.keyspace:()Ljava/lang/String;
invokevirtual org.apache.cassandra.cql3.CQL3Type$Raw.prepare:(Ljava/lang/String;)Lorg/apache/cassandra/cql3/CQL3Type;
astore 9
23: iload 8
ifeq 28
24: aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.isCompound:()Z
ifne 26
25: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Static columns are not allowed in COMPACT STORAGE tables"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.clusteringColumns:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 28
27: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Static columns are only useful (and thus allowed) if the table has at least one clustering column"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 6
ifnull 32
29: invokestatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind:()[I
aload 6
getfield org.apache.cassandra.config.ColumnDefinition.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 30
2: 30
default: 31
}
30: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid column name %s because it conflicts with a PRIMARY KEY part"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
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
31: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid column name %s because it conflicts with an existing column"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
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
32: StackMap locals:
StackMap stack:
aload 9
invokeinterface org.apache.cassandra.cql3.CQL3Type.getType:()Lorg/apache/cassandra/db/marshal/AbstractType;
astore 14
start local 14 33: aload 14
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isCollection:()Z
ifeq 38
aload 14
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isMultiCell:()Z
ifeq 38
34: aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.isCompound:()Z
ifne 36
35: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot use non-frozen collections in COMPACT STORAGE tables"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals: org.apache.cassandra.db.marshal.AbstractType
StackMap stack:
aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifeq 38
37: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot use non-frozen collections with super column families"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
iload 8
ifeq 40
39: aload 4
aload 5
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
aload 14
invokestatic org.apache.cassandra.config.ColumnDefinition.staticDef:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
goto 41
40: StackMap locals:
StackMap stack:
aload 4
aload 5
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
aload 14
invokestatic org.apache.cassandra.config.ColumnDefinition.regularDef:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
41: StackMap locals:
StackMap stack: org.apache.cassandra.config.ColumnDefinition
astore 15
start local 15 42: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.getDroppedColumns:()Ljava/util/Map;
aload 5
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.config.CFMetaData$DroppedColumn
astore 16
start local 16 43: aload 16
ifnull 64
44: aload 16
getfield org.apache.cassandra.config.CFMetaData$DroppedColumn.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
aload 15
getfield org.apache.cassandra.config.ColumnDefinition.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
if_acmpeq 54
45: ldc "Cannot re-add previously dropped column '%s' of kind %s, incompatible with previous kind %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
46: aload 5
aastore
dup
iconst_1
47: aload 15
getfield org.apache.cassandra.config.ColumnDefinition.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
aastore
dup
iconst_2
48: aload 16
getfield org.apache.cassandra.config.CFMetaData$DroppedColumn.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
ifnonnull 49
ldc "UNKNOWN"
goto 50
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.config.CFMetaData$DroppedColumn
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
49: aload 16
getfield org.apache.cassandra.config.CFMetaData$DroppedColumn.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.config.CFMetaData$DroppedColumn
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int java.io.Serializable
50: aastore
51: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
52: astore 17
start local 17 53: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 17
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 17 54: StackMap locals:
StackMap stack:
aload 14
aload 16
getfield org.apache.cassandra.config.CFMetaData$DroppedColumn.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isValueCompatibleWith:(Lorg/apache/cassandra/db/marshal/AbstractType;)Z
ifne 62
55: ldc "Cannot re-add previously dropped column '%s' of type %s, incompatible with previous type %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
56: aload 5
aastore
dup
iconst_1
57: aload 14
invokevirtual org.apache.cassandra.db.marshal.AbstractType.asCQL3Type:()Lorg/apache/cassandra/cql3/CQL3Type;
aastore
dup
iconst_2
58: aload 16
getfield org.apache.cassandra.config.CFMetaData$DroppedColumn.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.asCQL3Type:()Lorg/apache/cassandra/cql3/CQL3Type;
aastore
59: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
60: astore 17
start local 17 61: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 17
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 17 62: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ifeq 64
63: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot re-add previously dropped counter column %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
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
64: StackMap locals:
StackMap stack:
aload 4
aload 15
invokevirtual org.apache.cassandra.config.CFMetaData.addColumnDefinition:(Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/config/CFMetaData;
pop
65: iload 8
ifne 75
66: aload 11
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 18
goto 74
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.config.CFMetaData$DroppedColumn top java.util.Iterator
StackMap stack:
67: aload 18
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
astore 17
start local 17 68: aload 17
getfield org.apache.cassandra.config.ViewDefinition.includeAllColumns:Z
ifeq 74
69: aload 17
invokevirtual org.apache.cassandra.config.ViewDefinition.copy:()Lorg/apache/cassandra/config/ViewDefinition;
astore 19
start local 19 70: aload 19
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 19
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 5
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
aload 14
invokestatic org.apache.cassandra.config.ColumnDefinition.regularDef:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
invokevirtual org.apache.cassandra.config.CFMetaData.addColumnDefinition:(Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/config/CFMetaData;
pop
71: aload 10
ifnonnull 73
72: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 10
73: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.config.CFMetaData$DroppedColumn org.apache.cassandra.config.ViewDefinition java.util.Iterator org.apache.cassandra.config.ViewDefinition
StackMap stack:
aload 10
aload 19
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 19 end local 17 74: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.config.CFMetaData$DroppedColumn top java.util.Iterator
StackMap stack:
aload 18
invokeinterface java.util.Iterator.hasNext:()Z
ifne 67
end local 16 end local 15 end local 14 end local 12 75: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Iterator
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
76: goto 153
end local 4 77: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData top org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCQLTable:()Z
ifne 79
78: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot drop columns from a non-CQL3 table"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
79: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.copy:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 80: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.colNameList:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 13
goto 116
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Iterator
StackMap stack:
81: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.statements.AlterTableStatementColumn
astore 12
start local 12 82: aload 12
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatementColumn.getColumnName:()Lorg/apache/cassandra/config/ColumnDefinition$Raw;
aload 4
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 5
83: aload 4
aload 5
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 6
84: aload 6
ifnonnull 86
85: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Column %s was not found in table %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.columnFamily:()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
86: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator
StackMap stack:
invokestatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind:()[I
aload 6
getfield org.apache.cassandra.config.ColumnDefinition.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 87
2: 87
3: 88
4: 88
default: 100
}
87: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot drop PRIMARY KEY part %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
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
88: StackMap locals:
StackMap stack:
aconst_null
astore 14
start local 14 89: aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.partitionColumns:()Lorg/apache/cassandra/db/PartitionColumns;
invokevirtual org.apache.cassandra.db.PartitionColumns.iterator:()Ljava/util/Iterator;
astore 16
goto 94
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.config.ColumnDefinition top java.util.Iterator
StackMap stack:
90: aload 16
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
astore 15
start local 15 91: aload 15
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aload 5
invokevirtual org.apache.cassandra.cql3.ColumnIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 94
92: aload 15
astore 14
93: goto 95
end local 15 94: StackMap locals:
StackMap stack:
aload 16
invokeinterface java.util.Iterator.hasNext:()Z
ifne 90
95: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.config.ColumnDefinition
StackMap stack:
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$assertionsDisabled:Z
ifne 96
aload 14
ifnonnull 96
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
96: StackMap locals:
StackMap stack:
aload 4
aload 14
invokevirtual org.apache.cassandra.config.CFMetaData.removeColumnDefinition:(Lorg/apache/cassandra/config/ColumnDefinition;)Z
pop
97: aload 4
aload 14
aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.deleteTimestamp:Ljava/lang/Long;
ifnonnull 98
aload 1
invokevirtual org.apache.cassandra.service.QueryState.getTimestamp:()J
goto 99
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.config.ColumnDefinition
StackMap stack: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition
98: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.deleteTimestamp:Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.cql3.statements.AlterTableStatementColumn java.util.Iterator org.apache.cassandra.config.ColumnDefinition
StackMap stack: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition long
99: invokevirtual org.apache.cassandra.config.CFMetaData.recordColumnDrop:(Lorg/apache/cassandra/config/ColumnDefinition;J)V
end local 14 100: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.apache.cassandra.config.CFMetaData.getIndexes:()Lorg/apache/cassandra/schema/Indexes;
astore 14
start local 14 101: aload 14
invokevirtual org.apache.cassandra.schema.Indexes.isEmpty:()Z
ifne 111
102: aload 4
invokestatic org.apache.cassandra.db.Keyspace.openAndGetStore:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/ColumnFamilyStore;
astore 15
start local 15 103: aload 15
getfield org.apache.cassandra.db.ColumnFamilyStore.indexManager:Lorg/apache/cassandra/index/SecondaryIndexManager;
aload 6
invokevirtual org.apache.cassandra.index.SecondaryIndexManager.getDependentIndexes:(Lorg/apache/cassandra/config/ColumnDefinition;)Ljava/util/Set;
astore 16
start local 16 104: aload 16
invokeinterface java.util.Set.isEmpty:()Z
ifne 111
105: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot drop column %s because it has dependent secondary indexes (%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
106: aload 6
aastore
dup
iconst_1
107: aload 16
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
108: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
org/apache/cassandra/cql3/statements/AlterTableStatement.lambda$0(Lorg/apache/cassandra/schema/IndexMetadata;)Ljava/lang/String; (6)
(Lorg/apache/cassandra/schema/IndexMetadata;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
109: ldc ","
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
110: 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 16 end local 15 111: StackMap locals: org.apache.cassandra.schema.Indexes
StackMap stack:
aload 11
invokestatic com.google.common.collect.Iterables.isEmpty:(Ljava/lang/Iterable;)Z
ifne 116
112: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot drop column %s on base table %s with materialized views."
iconst_2
anewarray java.lang.Object
dup
iconst_0
113: aload 5
invokevirtual org.apache.cassandra.cql3.ColumnIdentifier.toString:()Ljava/lang/String;
aastore
dup
iconst_1
114: aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.columnFamily:()Ljava/lang/String;
aastore
115: 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 14 end local 12 116: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Iterator
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 81
117: goto 153
end local 4 118: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData top org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCompactTable:()Z
ifne 120
119: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot DROP COMPACT STORAGE on table without COMPACT STORAGE"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
120: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.asNonCompact:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 121: goto 153
end local 4 122: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
ifnonnull 124
123: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ALTER TABLE WITH invoked, but no parameters found"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
124: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
invokevirtual org.apache.cassandra.cql3.statements.TableAttributes.validate:()V
125: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.copy:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 126: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
aload 4
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
invokevirtual org.apache.cassandra.cql3.statements.TableAttributes.asAlteredTableParams:(Lorg/apache/cassandra/schema/TableParams;)Lorg/apache/cassandra/schema/TableParams;
astore 12
start local 12 127: aload 11
invokestatic com.google.common.collect.Iterables.isEmpty:(Ljava/lang/Iterable;)Z
ifne 129
aload 12
getfield org.apache.cassandra.schema.TableParams.gcGraceSeconds:I
ifne 129
128: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot alter gc_grace_seconds of the base table of a materialized view to 0, since this value is used to TTL undelivered updates. Setting gc_grace_seconds too low might cause undelivered updates to expire before being replayed."
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
129: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable org.apache.cassandra.schema.TableParams
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ifeq 131
aload 12
getfield org.apache.cassandra.schema.TableParams.defaultTimeToLive:I
ifle 131
130: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot set default_time_to_live on a table with counters"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
131: StackMap locals:
StackMap stack:
aload 4
aload 12
invokevirtual org.apache.cassandra.config.CFMetaData.params:(Lorg/apache/cassandra/schema/TableParams;)Lorg/apache/cassandra/config/CFMetaData;
pop
132: goto 153
end local 12 end local 4 133: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData top org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.copy:()Lorg/apache/cassandra/config/CFMetaData;
astore 4
start local 4 134: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.renames:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 14
goto 150
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top top java.util.Iterator
StackMap stack:
135: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 13
start local 13 136: aload 13
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
aload 4
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 15
start local 15 137: aload 13
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
aload 4
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 16
start local 16 138: aload 4
aload 15
aload 16
invokevirtual org.apache.cassandra.config.CFMetaData.renameColumn:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/ColumnIdentifier;)V
139: aload 11
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 18
goto 149
StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Map$Entry java.util.Iterator org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.cql3.ColumnIdentifier top java.util.Iterator
StackMap stack:
140: aload 18
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
astore 17
start local 17 141: aload 17
aload 15
invokevirtual org.apache.cassandra.config.ViewDefinition.includes:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Z
ifne 142
goto 149
142: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Map$Entry java.util.Iterator org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ViewDefinition java.util.Iterator
StackMap stack:
aload 17
invokevirtual org.apache.cassandra.config.ViewDefinition.copy:()Lorg/apache/cassandra/config/ViewDefinition;
astore 19
start local 19 143: aload 13
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
aload 19
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 20
start local 20 144: aload 13
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
aload 19
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Raw.getIdentifier:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
astore 21
start local 21 145: aload 19
aload 20
aload 21
invokevirtual org.apache.cassandra.config.ViewDefinition.renameColumn:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/ColumnIdentifier;)V
146: aload 10
ifnonnull 148
147: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 10
148: StackMap locals: org.apache.cassandra.config.ViewDefinition org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.cql3.ColumnIdentifier
StackMap stack:
aload 10
aload 19
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 21 end local 20 end local 19 end local 17 149: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top java.util.Map$Entry java.util.Iterator org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.cql3.ColumnIdentifier top java.util.Iterator
StackMap stack:
aload 18
invokeinterface java.util.Iterator.hasNext:()Z
ifne 140
end local 16 end local 15 end local 13 150: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable top top java.util.Iterator
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 135
151: goto 153
end local 4 152: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData top org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "Can not alter table: unknown option type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.oType:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
start local 4 153: StackMap locals: org.apache.cassandra.cql3.statements.AlterTableStatement org.apache.cassandra.service.QueryState int org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.CFMetaData org.apache.cassandra.cql3.ColumnIdentifier org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.cql3.CQL3Type$Raw int org.apache.cassandra.cql3.CQL3Type java.util.List java.lang.Iterable
StackMap stack:
aload 4
aload 10
iload 2
invokestatic org.apache.cassandra.service.MigrationManager.announceColumnFamilyUpdate:(Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection;Z)V
154: 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 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement.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
areturn
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 155 0 this Lorg/apache/cassandra/cql3/statements/AlterTableStatement;
0 155 1 queryState Lorg/apache/cassandra/service/QueryState;
0 155 2 isLocalOnly Z
1 155 3 meta Lorg/apache/cassandra/config/CFMetaData;
15 77 4 cfm Lorg/apache/cassandra/config/CFMetaData;
80 118 4 cfm Lorg/apache/cassandra/config/CFMetaData;
121 122 4 cfm Lorg/apache/cassandra/config/CFMetaData;
126 133 4 cfm Lorg/apache/cassandra/config/CFMetaData;
134 152 4 cfm Lorg/apache/cassandra/config/CFMetaData;
153 155 4 cfm Lorg/apache/cassandra/config/CFMetaData;
4 155 5 columnName Lorg/apache/cassandra/cql3/ColumnIdentifier;
5 155 6 def Lorg/apache/cassandra/config/ColumnDefinition;
6 155 7 dataType Lorg/apache/cassandra/cql3/CQL3Type$Raw;
7 155 8 isStatic Z
8 155 9 validator Lorg/apache/cassandra/cql3/CQL3Type;
9 155 10 viewUpdates Ljava/util/List<Lorg/apache/cassandra/config/ViewDefinition;>;
10 155 11 views Ljava/lang/Iterable<Lorg/apache/cassandra/config/ViewDefinition;>;
17 75 12 colData Lorg/apache/cassandra/cql3/statements/AlterTableStatementColumn;
33 75 14 type Lorg/apache/cassandra/db/marshal/AbstractType<*>;
42 75 15 toAdd Lorg/apache/cassandra/config/ColumnDefinition;
43 75 16 droppedColumn Lorg/apache/cassandra/config/CFMetaData$DroppedColumn;
53 54 17 message Ljava/lang/String;
61 62 17 message Ljava/lang/String;
68 74 17 view Lorg/apache/cassandra/config/ViewDefinition;
70 74 19 viewCopy Lorg/apache/cassandra/config/ViewDefinition;
82 116 12 colData Lorg/apache/cassandra/cql3/statements/AlterTableStatementColumn;
89 100 14 toDelete Lorg/apache/cassandra/config/ColumnDefinition;
91 94 15 columnDef Lorg/apache/cassandra/config/ColumnDefinition;
101 116 14 allIndexes Lorg/apache/cassandra/schema/Indexes;
103 111 15 store Lorg/apache/cassandra/db/ColumnFamilyStore;
104 111 16 dependentIndexes Ljava/util/Set<Lorg/apache/cassandra/schema/IndexMetadata;>;
127 133 12 params Lorg/apache/cassandra/schema/TableParams;
136 150 13 entry Ljava/util/Map$Entry<Lorg/apache/cassandra/config/ColumnDefinition$Raw;Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;
137 150 15 from Lorg/apache/cassandra/cql3/ColumnIdentifier;
138 150 16 to Lorg/apache/cassandra/cql3/ColumnIdentifier;
141 149 17 view Lorg/apache/cassandra/config/ViewDefinition;
143 149 19 viewCopy Lorg/apache/cassandra/config/ViewDefinition;
144 149 20 viewFrom Lorg/apache/cassandra/cql3/ColumnIdentifier;
145 149 21 viewTo Lorg/apache/cassandra/cql3/ColumnIdentifier;
Exceptions:
throws org.apache.cassandra.exceptions.RequestValidationException
MethodParameters:
Name Flags
queryState
isLocalOnly
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "AlterTableStatement(name=%s, type=%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.cfName:Lorg/apache/cassandra/cql3/CFName;
aastore
dup
iconst_1
2: aload 0
getfield org.apache.cassandra.cql3.statements.AlterTableStatement.oType:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
aastore
3: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/AlterTableStatement;
static int[] $SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.config.ColumnDefinition$Kind.values:()[Lorg/apache/cassandra/config/ColumnDefinition$Kind;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.CLUSTERING:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.PARTITION_KEY:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.REGULAR:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.STATIC:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
invokevirtual org.apache.cassandra.config.ColumnDefinition$Kind.ordinal:()I
iconst_4
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$config$ColumnDefinition$Kind:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$org$apache$cassandra$cql3$statements$AlterTableStatement$Type();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$cql3$statements$AlterTableStatement$Type:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.values:()[Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ADD:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ALTER:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.DROP:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.DROP_COMPACT_STORAGE:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iconst_4
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.OPTS:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
iconst_5
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.apache.cassandra.cql3.statements.AlterTableStatement$Type.RENAME:Lorg/apache/cassandra/cql3/statements/AlterTableStatement$Type;
invokevirtual org.apache.cassandra.cql3.statements.AlterTableStatement$Type.ordinal:()I
bipush 6
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
dup
putstatic org.apache.cassandra.cql3.statements.AlterTableStatement.$SWITCH_TABLE$org$apache$cassandra$cql3$statements$AlterTableStatement$Type:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
private static java.lang.String lambda$0(org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/schema/IndexMetadata;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 i Lorg/apache/cassandra/schema/IndexMetadata;
}
SourceFile: "AlterTableStatement.java"
NestMembers:
org.apache.cassandra.cql3.statements.AlterTableStatement$Type
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public DroppedColumn = org.apache.cassandra.config.CFMetaData$DroppedColumn of org.apache.cassandra.config.CFMetaData
public final Kind = org.apache.cassandra.config.ColumnDefinition$Kind of org.apache.cassandra.config.ColumnDefinition
public abstract Raw = org.apache.cassandra.config.ColumnDefinition$Raw of org.apache.cassandra.config.ColumnDefinition
public abstract Raw = org.apache.cassandra.cql3.CQL3Type$Raw of org.apache.cassandra.cql3.CQL3Type
public final Type = org.apache.cassandra.cql3.statements.AlterTableStatement$Type of org.apache.cassandra.cql3.statements.AlterTableStatement
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