public class org.apache.cassandra.cql3.Lists$DiscarderByIndex extends org.apache.cassandra.cql3.Operation
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.Lists$DiscarderByIndex
super_class: org.apache.cassandra.cql3.Operation
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, 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/Lists;
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.Lists$DiscarderByIndex.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.config.ColumnDefinition, org.apache.cassandra.cql3.Term);
descriptor: (Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/Term;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.cql3.Operation.<init>:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/Term;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/Lists$DiscarderByIndex;
0 2 1 column Lorg/apache/cassandra/config/ColumnDefinition;
0 2 2 idx Lorg/apache/cassandra/cql3/Term;
MethodParameters:
Name Flags
column
idx
public boolean requiresRead();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/Lists$DiscarderByIndex;
public void execute(org.apache.cassandra.db.DecoratedKey, org.apache.cassandra.cql3.UpdateParameters);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/cql3/UpdateParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.cql3.Lists$DiscarderByIndex.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.cassandra.cql3.Lists$DiscarderByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isMultiCell:()Z
ifne 1
new java.lang.AssertionError
dup
ldc "Attempted to delete an item by index from a frozen list"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.Lists$DiscarderByIndex.t:Lorg/apache/cassandra/cql3/Term;
aload 2
getfield org.apache.cassandra.cql3.UpdateParameters.options:Lorg/apache/cassandra/cql3/QueryOptions;
invokeinterface org.apache.cassandra.cql3.Term.bind:(Lorg/apache/cassandra/cql3/QueryOptions;)Lorg/apache/cassandra/cql3/Term$Terminal;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid null value for list index"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.apache.cassandra.cql3.Term$Terminal
StackMap stack:
aload 3
getstatic org.apache.cassandra.cql3.Constants.UNSET_VALUE:Lorg/apache/cassandra/cql3/Constants$Value;
if_acmpne 6
5: return
6: StackMap locals:
StackMap stack:
aload 2
aload 1
aload 2
invokevirtual org.apache.cassandra.cql3.UpdateParameters.currentClustering:()Lorg/apache/cassandra/db/Clustering;
invokevirtual org.apache.cassandra.cql3.UpdateParameters.getPrefetchedRow:(Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/Clustering;)Lorg/apache/cassandra/db/rows/Row;
astore 4
start local 4 7: aload 4
aload 0
getfield org.apache.cassandra.cql3.Lists$DiscarderByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
invokestatic org.apache.cassandra.cql3.Lists.existingSize:(Lorg/apache/cassandra/db/rows/Row;Lorg/apache/cassandra/config/ColumnDefinition;)I
istore 5
start local 5 8: aload 3
aload 2
getfield org.apache.cassandra.cql3.UpdateParameters.options:Lorg/apache/cassandra/cql3/QueryOptions;
invokevirtual org.apache.cassandra.cql3.QueryOptions.getProtocolVersion:()Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.cql3.Term$Terminal.get:(Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.toInt:(Ljava/nio/ByteBuffer;)I
istore 6
start local 6 9: iload 5
ifne 11
10: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Attempted to delete an element from a list which is null"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: org.apache.cassandra.db.rows.Row int int
StackMap stack:
iload 6
iflt 12
iload 6
iload 5
if_icmplt 13
12: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "List index %d out of bound, list has size %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 5
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
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
13: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.apache.cassandra.cql3.Lists$DiscarderByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
aload 4
aload 0
getfield org.apache.cassandra.cql3.Lists$DiscarderByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface org.apache.cassandra.db.rows.Row.getComplexColumnData:(Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/db/rows/ComplexColumnData;
iload 6
invokevirtual org.apache.cassandra.db.rows.ComplexColumnData.getCellByIndex:(I)Lorg/apache/cassandra/db/rows/Cell;
invokevirtual org.apache.cassandra.db.rows.Cell.path:()Lorg/apache/cassandra/db/rows/CellPath;
invokevirtual org.apache.cassandra.cql3.UpdateParameters.addTombstone:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/db/rows/CellPath;)V
14: 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 15 0 this Lorg/apache/cassandra/cql3/Lists$DiscarderByIndex;
0 15 1 partitionKey Lorg/apache/cassandra/db/DecoratedKey;
0 15 2 params Lorg/apache/cassandra/cql3/UpdateParameters;
2 15 3 index Lorg/apache/cassandra/cql3/Term$Terminal;
7 15 4 existingRow Lorg/apache/cassandra/db/rows/Row;
8 15 5 existingSize I
9 15 6 idx I
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
partitionKey
params
}
SourceFile: "Lists.java"
NestHost: org.apache.cassandra.cql3.Lists
InnerClasses:
public DiscarderByIndex = org.apache.cassandra.cql3.Lists$DiscarderByIndex of org.apache.cassandra.cql3.Lists
public abstract Terminal = org.apache.cassandra.cql3.Term$Terminal of org.apache.cassandra.cql3.Term