public class org.apache.cassandra.cql3.Lists$SetterByIndex 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$SetterByIndex
super_class: org.apache.cassandra.cql3.Operation
{
private final org.apache.cassandra.cql3.Term idx;
descriptor: Lorg/apache/cassandra/cql3/Term;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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$SetterByIndex.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.config.ColumnDefinition, org.apache.cassandra.cql3.Term, org.apache.cassandra.cql3.Term);
descriptor: (Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/Term;Lorg/apache/cassandra/cql3/Term;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 3
invokespecial org.apache.cassandra.cql3.Operation.<init>:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/Term;)V
1: aload 0
aload 2
putfield org.apache.cassandra.cql3.Lists$SetterByIndex.idx:Lorg/apache/cassandra/cql3/Term;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/Lists$SetterByIndex;
0 3 1 column Lorg/apache/cassandra/config/ColumnDefinition;
0 3 2 idx Lorg/apache/cassandra/cql3/Term;
0 3 3 t Lorg/apache/cassandra/cql3/Term;
MethodParameters:
Name Flags
column
idx
t
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$SetterByIndex;
public void collectMarkerSpecification(org.apache.cassandra.cql3.VariableSpecifications);
descriptor: (Lorg/apache/cassandra/cql3/VariableSpecifications;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.cassandra.cql3.Operation.collectMarkerSpecification:(Lorg/apache/cassandra/cql3/VariableSpecifications;)V
1: aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.idx:Lorg/apache/cassandra/cql3/Term;
aload 1
invokeinterface org.apache.cassandra.cql3.Term.collectMarkerSpecification:(Lorg/apache/cassandra/cql3/VariableSpecifications;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/Lists$SetterByIndex;
0 3 1 boundNames Lorg/apache/cassandra/cql3/VariableSpecifications;
MethodParameters:
Name Flags
boundNames
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=9, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.cql3.Lists$SetterByIndex.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.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 set an individual element on 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$SetterByIndex.idx: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.bindAndGet:(Lorg/apache/cassandra/cql3/QueryOptions;)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.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.bindAndGet:(Lorg/apache/cassandra/cql3/QueryOptions;)Ljava/nio/ByteBuffer;
astore 4
start local 4 3: aload 3
ifnonnull 5
4: 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
5: StackMap locals: java.nio.ByteBuffer java.nio.ByteBuffer
StackMap stack:
aload 3
getstatic org.apache.cassandra.utils.ByteBufferUtil.UNSET_BYTE_BUFFER:Ljava/nio/ByteBuffer;
if_acmpne 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid unset value for list index"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: 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 5
start local 5 8: aload 5
aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.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 6
start local 6 9: aload 3
invokestatic org.apache.cassandra.utils.ByteBufferUtil.toInt:(Ljava/nio/ByteBuffer;)I
istore 7
start local 7 10: iload 6
ifne 12
11: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Attempted to set an element on a list which is null"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: org.apache.cassandra.db.rows.Row int int
StackMap stack:
iload 7
iflt 13
iload 7
iload 6
if_icmplt 14
13: 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 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 6
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
14: StackMap locals:
StackMap stack:
aload 5
aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.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 7
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;
astore 8
start local 8 15: aload 4
ifnonnull 17
16: aload 2
aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
aload 8
invokevirtual org.apache.cassandra.cql3.UpdateParameters.addTombstone:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/db/rows/CellPath;)V
goto 19
17: StackMap locals: org.apache.cassandra.db.rows.CellPath
StackMap stack:
aload 4
getstatic org.apache.cassandra.utils.ByteBufferUtil.UNSET_BYTE_BUFFER:Ljava/nio/ByteBuffer;
if_acmpeq 19
18: aload 2
aload 0
getfield org.apache.cassandra.cql3.Lists$SetterByIndex.column:Lorg/apache/cassandra/config/ColumnDefinition;
aload 8
aload 4
invokevirtual org.apache.cassandra.cql3.UpdateParameters.addCell:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/db/rows/CellPath;Ljava/nio/ByteBuffer;)V
19: StackMap locals:
StackMap stack:
return
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 20 0 this Lorg/apache/cassandra/cql3/Lists$SetterByIndex;
0 20 1 partitionKey Lorg/apache/cassandra/db/DecoratedKey;
0 20 2 params Lorg/apache/cassandra/cql3/UpdateParameters;
2 20 3 index Ljava/nio/ByteBuffer;
3 20 4 value Ljava/nio/ByteBuffer;
8 20 5 existingRow Lorg/apache/cassandra/db/rows/Row;
9 20 6 existingSize I
10 20 7 idx I
15 20 8 elementPath Lorg/apache/cassandra/db/rows/CellPath;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
partitionKey
params
}
SourceFile: "Lists.java"
NestHost: org.apache.cassandra.cql3.Lists
InnerClasses:
public SetterByIndex = org.apache.cassandra.cql3.Lists$SetterByIndex of org.apache.cassandra.cql3.Lists