public class org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert extends org.apache.cassandra.cql3.statements.ModificationStatement$Parsed
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert
super_class: org.apache.cassandra.cql3.statements.ModificationStatement$Parsed
{
private final java.util.List<org.apache.cassandra.config.ColumnDefinition$Raw> columnNames;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;
private final java.util.List<org.apache.cassandra.cql3.Term$Raw> columnValues;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;
public void <init>(org.apache.cassandra.cql3.CFName, org.apache.cassandra.cql3.Attributes$Raw, java.util.List<org.apache.cassandra.config.ColumnDefinition$Raw>, java.util.List<org.apache.cassandra.cql3.Term$Raw>, );
descriptor: (Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/Attributes$Raw;Ljava/util/List;Ljava/util/List;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
getstatic org.apache.cassandra.cql3.statements.StatementType.INSERT:Lorg/apache/cassandra/cql3/statements/StatementType;
aload 2
aconst_null
iload 5
iconst_0
invokespecial org.apache.cassandra.cql3.statements.ModificationStatement$Parsed.<init>:(Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/statements/StatementType;Lorg/apache/cassandra/cql3/Attributes$Raw;Ljava/util/List;ZZ)V
1: aload 0
aload 3
putfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
2: aload 0
aload 4
putfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnValues:Ljava/util/List;
3: return
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 4 0 this Lorg/apache/cassandra/cql3/statements/UpdateStatement$ParsedInsert;
0 4 1 name Lorg/apache/cassandra/cql3/CFName;
0 4 2 attrs Lorg/apache/cassandra/cql3/Attributes$Raw;
0 4 3 columnNames Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;
0 4 4 columnValues Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;
0 4 5 ifNotExists Z
Signature: (Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/Attributes$Raw;Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition$Raw;>;Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;Z)V
MethodParameters:
Name Flags
name
attrs
columnNames
columnValues
ifNotExists
protected org.apache.cassandra.cql3.statements.ModificationStatement prepareInternal(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.cql3.VariableSpecifications, org.apache.cassandra.cql3.Conditions, org.apache.cassandra.cql3.Attributes);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/cql3/VariableSpecifications;Lorg/apache/cassandra/cql3/Conditions;Lorg/apache/cassandra/cql3/Attributes;)Lorg/apache/cassandra/cql3/statements/ModificationStatement;
flags: (0x0004) ACC_PROTECTED
Code:
stack=10, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ldc "INSERT statements are not allowed on counter tables, use UPDATE instead"
invokestatic org.apache.cassandra.cql3.statements.RequestValidations.checkFalse:(ZLjava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
ifnonnull 2
iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "Column names for INSERT must be provided when using VALUES"
invokestatic org.apache.cassandra.cql3.statements.RequestValidations.checkFalse:(ZLjava/lang/String;)V
4: aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ldc "No columns provided to INSERT"
invokestatic org.apache.cassandra.cql3.statements.RequestValidations.checkFalse:(ZLjava/lang/String;)V
5: aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnValues:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 6
iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: ldc "Unmatched column names/values"
invokestatic org.apache.cassandra.cql3.statements.RequestValidations.checkFalse:(ZLjava/lang/String;)V
8: aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
ldc "The column names contains duplicates"
invokestatic org.apache.cassandra.cql3.statements.RequestValidations.checkContainsNoDuplicates:(Ljava/util/List;Ljava/lang/String;)V
9: new org.apache.cassandra.cql3.WhereClause$Builder
dup
invokespecial org.apache.cassandra.cql3.WhereClause$Builder.<init>:()V
astore 5
start local 5 10: new org.apache.cassandra.cql3.Operations
dup
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.type:Lorg/apache/cassandra/cql3/statements/StatementType;
invokespecial org.apache.cassandra.cql3.Operations.<init>:(Lorg/apache/cassandra/cql3/statements/StatementType;)V
astore 6
start local 6 11: iconst_0
istore 7
start local 7 12: aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifeq 16
aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.isDense:()Z
ifeq 16
13: iconst_1
istore 7
14: aload 1
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
aload 5
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnValues:Ljava/util/List;
aload 2
aload 6
invokestatic org.apache.cassandra.cql3.SuperColumnCompatibility.prepareInsertOperations:(Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;Lorg/apache/cassandra/cql3/WhereClause$Builder;Ljava/util/List;Lorg/apache/cassandra/cql3/VariableSpecifications;Lorg/apache/cassandra/cql3/Operations;)V
15: goto 30
16: StackMap locals: org.apache.cassandra.cql3.WhereClause$Builder org.apache.cassandra.cql3.Operations int
StackMap stack:
iconst_0
istore 8
start local 8 17: goto 29
18: StackMap locals: int
StackMap stack:
aload 1
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
invokestatic org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.getColumnDefinition:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition$Raw;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 9
start local 9 19: aload 9
invokevirtual org.apache.cassandra.config.ColumnDefinition.isClusteringColumn:()Z
ifeq 21
20: iconst_1
istore 7
21: StackMap locals: org.apache.cassandra.config.ColumnDefinition
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnValues:Ljava/util/List;
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.Term$Raw
astore 10
start local 10 22: aload 9
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPrimaryKeyColumn:()Z
ifeq 25
23: aload 5
new org.apache.cassandra.cql3.SingleColumnRelation
dup
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition$Raw
getstatic org.apache.cassandra.cql3.Operator.EQ:Lorg/apache/cassandra/cql3/Operator;
aload 10
invokespecial org.apache.cassandra.cql3.SingleColumnRelation.<init>:(Lorg/apache/cassandra/config/ColumnDefinition$Raw;Lorg/apache/cassandra/cql3/Operator;Lorg/apache/cassandra/cql3/Term$Raw;)V
invokevirtual org.apache.cassandra.cql3.WhereClause$Builder.add:(Lorg/apache/cassandra/cql3/Relation;)Lorg/apache/cassandra/cql3/WhereClause$Builder;
pop
24: goto 28
25: StackMap locals: org.apache.cassandra.cql3.Term$Raw
StackMap stack:
new org.apache.cassandra.cql3.Operation$SetValue
dup
aload 10
invokespecial org.apache.cassandra.cql3.Operation$SetValue.<init>:(Lorg/apache/cassandra/cql3/Term$Raw;)V
aload 1
aload 9
invokevirtual org.apache.cassandra.cql3.Operation$SetValue.prepare:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/cql3/Operation;
astore 11
start local 11 26: aload 11
aload 2
invokevirtual org.apache.cassandra.cql3.Operation.collectMarkerSpecification:(Lorg/apache/cassandra/cql3/VariableSpecifications;)V
27: aload 6
aload 11
invokevirtual org.apache.cassandra.cql3.Operations.add:(Lorg/apache/cassandra/cql3/Operation;)V
end local 11 end local 10 end local 9 28: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
29: iload 8
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.columnNames:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 18
end local 8 30: StackMap locals:
StackMap stack:
iload 7
ifne 31
aload 6
aload 3
invokestatic org.apache.cassandra.cql3.statements.UpdateStatement.appliesOnlyToStaticColumns:(Lorg/apache/cassandra/cql3/Operations;Lorg/apache/cassandra/cql3/Conditions;)Z
ifeq 31
iconst_1
goto 32
StackMap locals:
StackMap stack:
31: iconst_0
StackMap locals:
StackMap stack: int
32: istore 8
start local 8 33: new org.apache.cassandra.cql3.restrictions.StatementRestrictions
dup
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.type:Lorg/apache/cassandra/cql3/statements/StatementType;
34: aload 1
35: aload 5
invokevirtual org.apache.cassandra.cql3.WhereClause$Builder.build:()Lorg/apache/cassandra/cql3/WhereClause;
36: aload 2
37: iload 8
38: iconst_0
39: iconst_0
40: iconst_0
41: invokespecial org.apache.cassandra.cql3.restrictions.StatementRestrictions.<init>:(Lorg/apache/cassandra/cql3/statements/StatementType;Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/cql3/WhereClause;Lorg/apache/cassandra/cql3/VariableSpecifications;ZZZZ)V
astore 9
start local 9 42: new org.apache.cassandra.cql3.statements.UpdateStatement
dup
aload 0
getfield org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert.type:Lorg/apache/cassandra/cql3/statements/StatementType;
43: aload 2
invokevirtual org.apache.cassandra.cql3.VariableSpecifications.size:()I
44: aload 1
45: aload 6
46: aload 9
47: aload 3
48: aload 4
49: invokespecial org.apache.cassandra.cql3.statements.UpdateStatement.<init>:(Lorg/apache/cassandra/cql3/statements/StatementType;ILorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/cql3/Operations;Lorg/apache/cassandra/cql3/restrictions/StatementRestrictions;Lorg/apache/cassandra/cql3/Conditions;Lorg/apache/cassandra/cql3/Attributes;)V
areturn
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 50 0 this Lorg/apache/cassandra/cql3/statements/UpdateStatement$ParsedInsert;
0 50 1 cfm Lorg/apache/cassandra/config/CFMetaData;
0 50 2 boundNames Lorg/apache/cassandra/cql3/VariableSpecifications;
0 50 3 conditions Lorg/apache/cassandra/cql3/Conditions;
0 50 4 attrs Lorg/apache/cassandra/cql3/Attributes;
10 50 5 whereClause Lorg/apache/cassandra/cql3/WhereClause$Builder;
11 50 6 operations Lorg/apache/cassandra/cql3/Operations;
12 50 7 hasClusteringColumnsSet Z
17 30 8 i I
19 28 9 def Lorg/apache/cassandra/config/ColumnDefinition;
22 28 10 value Lorg/apache/cassandra/cql3/Term$Raw;
26 28 11 operation Lorg/apache/cassandra/cql3/Operation;
33 50 8 applyOnlyToStaticColumns Z
42 50 9 restrictions Lorg/apache/cassandra/cql3/restrictions/StatementRestrictions;
MethodParameters:
Name Flags
cfm
boundNames
conditions
attrs
}
SourceFile: "UpdateStatement.java"
NestHost: org.apache.cassandra.cql3.statements.UpdateStatement
InnerClasses:
public abstract Raw = org.apache.cassandra.config.ColumnDefinition$Raw of org.apache.cassandra.config.ColumnDefinition
public Raw = org.apache.cassandra.cql3.Attributes$Raw of org.apache.cassandra.cql3.Attributes
public Raw = org.apache.cassandra.cql3.ColumnCondition$Raw of org.apache.cassandra.cql3.ColumnCondition
public SetValue = org.apache.cassandra.cql3.Operation$SetValue of org.apache.cassandra.cql3.Operation
public abstract Raw = org.apache.cassandra.cql3.Term$Raw of org.apache.cassandra.cql3.Term
public final Builder = org.apache.cassandra.cql3.WhereClause$Builder of org.apache.cassandra.cql3.WhereClause
public abstract Parsed = org.apache.cassandra.cql3.statements.ModificationStatement$Parsed of org.apache.cassandra.cql3.statements.ModificationStatement
public ParsedInsert = org.apache.cassandra.cql3.statements.UpdateStatement$ParsedInsert of org.apache.cassandra.cql3.statements.UpdateStatement