public class org.apache.cassandra.triggers.TriggerExecutor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.triggers.TriggerExecutor
super_class: java.lang.Object
{
public static final org.apache.cassandra.triggers.TriggerExecutor instance;
descriptor: Lorg/apache/cassandra/triggers/TriggerExecutor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, org.apache.cassandra.triggers.ITrigger> cachedTriggers;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/cassandra/triggers/ITrigger;>;
private final java.lang.ClassLoader parent;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.lang.ClassLoader customClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.cassandra.triggers.TriggerExecutor
dup
invokespecial org.apache.cassandra.triggers.TriggerExecutor.<init>:()V
putstatic org.apache.cassandra.triggers.TriggerExecutor.instance:Lorg/apache/cassandra/triggers/TriggerExecutor;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic com.google.common.collect.Maps.newConcurrentMap:()Ljava/util/concurrent/ConcurrentMap;
putfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
2: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
putfield org.apache.cassandra.triggers.TriggerExecutor.parent:Ljava/lang/ClassLoader;
3: aload 0
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.reloadClasses:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
public void reloadClasses();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: invokestatic org.apache.cassandra.utils.FBUtilities.cassandraTriggerDir:()Ljava/io/File;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: return
3: StackMap locals: java.io.File
StackMap stack:
aload 0
new org.apache.cassandra.triggers.CustomClassLoader
dup
aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.parent:Ljava/lang/ClassLoader;
aload 1
invokespecial org.apache.cassandra.triggers.CustomClassLoader.<init>:(Ljava/lang/ClassLoader;Ljava/io/File;)V
putfield org.apache.cassandra.triggers.TriggerExecutor.customClassLoader:Ljava/lang/ClassLoader;
4: aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
1 6 1 triggerDirectory Ljava/io/File;
public org.apache.cassandra.db.partitions.PartitionUpdate execute(org.apache.cassandra.db.partitions.PartitionUpdate);
descriptor: (Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Lorg/apache/cassandra/db/partitions/PartitionUpdate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.executeInternal:(Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Ljava/util/List;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: StackMap locals: java.util.List
StackMap stack:
aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
4: aload 1
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.partitionKey:()Lorg/apache/cassandra/db/DecoratedKey;
5: aload 2
6: invokevirtual org.apache.cassandra.triggers.TriggerExecutor.validateForSinglePartition:(Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/Collection;)Ljava/util/List;
astore 3
start local 3 7: aload 3
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 3
invokestatic org.apache.cassandra.db.partitions.PartitionUpdate.merge:(Ljava/util/List;)Lorg/apache/cassandra/db/partitions/PartitionUpdate;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 9 1 updates Lorg/apache/cassandra/db/partitions/PartitionUpdate;
1 9 2 intermediate Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
7 9 3 augmented Ljava/util/List<Lorg/apache/cassandra/db/partitions/PartitionUpdate;>;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
updates
public java.util.Collection<org.apache.cassandra.db.Mutation> execute(java.util.Collection<? extends org.apache.cassandra.db.IMutation>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 16
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.IMutation
astore 4
start local 4 4: aload 4
instanceof org.apache.cassandra.db.CounterMutation
ifeq 6
5: iconst_1
istore 2
6: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List org.apache.cassandra.db.IMutation java.util.Iterator
StackMap stack:
aload 4
invokeinterface org.apache.cassandra.db.IMutation.getPartitionUpdates:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 15
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List org.apache.cassandra.db.IMutation java.util.Iterator top java.util.Iterator
StackMap stack:
7: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.partitions.PartitionUpdate
astore 6
start local 6 8: aload 0
aload 6
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.executeInternal:(Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Ljava/util/List;
astore 8
start local 8 9: aload 8
ifnull 15
aload 8
invokeinterface java.util.List.isEmpty:()Z
ifeq 11
10: goto 15
11: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List org.apache.cassandra.db.IMutation java.util.Iterator org.apache.cassandra.db.partitions.PartitionUpdate java.util.Iterator java.util.List
StackMap stack:
aload 0
aload 8
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.validate:(Ljava/util/Collection;)V
12: aload 3
ifnonnull 14
13: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 3
14: StackMap locals:
StackMap stack:
aload 3
aload 8
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 8 end local 6 15: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List org.apache.cassandra.db.IMutation java.util.Iterator top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 4 16: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
17: aload 3
ifnonnull 19
18: aconst_null
areturn
19: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection int java.util.List
StackMap stack:
iload 2
ifeq 21
20: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Counter mutations and trigger mutations cannot be applied together atomically."
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 1
astore 4
start local 4 22: aload 0
aload 4
aload 3
invokestatic com.google.common.collect.Iterables.concat:(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.mergeMutations:(Ljava/lang/Iterable;)Ljava/util/Collection;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 23 1 mutations Ljava/util/Collection<+Lorg/apache/cassandra/db/IMutation;>;
1 23 2 hasCounters Z
2 23 3 augmentedMutations Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
4 16 4 mutation Lorg/apache/cassandra/db/IMutation;
8 15 6 upd Lorg/apache/cassandra/db/partitions/PartitionUpdate;
9 15 8 augmentations Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
22 23 4 originalMutations Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Ljava/util/Collection<+Lorg/apache/cassandra/db/IMutation;>;)Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
MethodParameters:
Name Flags
mutations
private java.util.Collection<org.apache.cassandra.db.Mutation> mergeMutations(java.lang.Iterable<org.apache.cassandra.db.Mutation>);
descriptor: (Ljava/lang/Iterable;)Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: invokestatic com.google.common.collect.ArrayListMultimap.create:()Lcom/google/common/collect/ArrayListMultimap;
astore 2
start local 2 1: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.lang.Iterable com.google.common.collect.ListMultimap top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 3
start local 3 3: aload 3
invokevirtual org.apache.cassandra.db.Mutation.getKeyspaceName:()Ljava/lang/String;
aload 3
invokevirtual org.apache.cassandra.db.Mutation.key:()Lorg/apache/cassandra/db/DecoratedKey;
invokevirtual org.apache.cassandra.db.DecoratedKey.getKey:()Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
astore 5
start local 5 4: aload 2
aload 5
aload 3
invokeinterface com.google.common.collect.ListMultimap.put:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
end local 5 end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: new java.util.ArrayList
dup
aload 2
invokeinterface com.google.common.collect.ListMultimap.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 7: aload 2
invokeinterface com.google.common.collect.ListMultimap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.lang.Iterable com.google.common.collect.ListMultimap java.util.List top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 4
start local 4 9: aload 3
aload 2
aload 4
invokeinterface com.google.common.collect.ListMultimap.get:(Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.db.Mutation.merge:(Ljava/util/List;)Lorg/apache/cassandra/db/Mutation;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 12 1 mutations Ljava/lang/Iterable<Lorg/apache/cassandra/db/Mutation;>;
1 12 2 groupedMutations Lcom/google/common/collect/ListMultimap<Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/nio/ByteBuffer;>;Lorg/apache/cassandra/db/Mutation;>;
3 5 3 mutation Lorg/apache/cassandra/db/Mutation;
4 5 5 key Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/nio/ByteBuffer;>;
7 12 3 merged Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
9 10 4 key Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/nio/ByteBuffer;>;
Signature: (Ljava/lang/Iterable<Lorg/apache/cassandra/db/Mutation;>;)Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
MethodParameters:
Name Flags
mutations
private java.util.List<org.apache.cassandra.db.partitions.PartitionUpdate> validateForSinglePartition(java.util.UUID, org.apache.cassandra.db.DecoratedKey, java.util.Collection<org.apache.cassandra.db.Mutation>);
descriptor: (Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/Collection;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.validate:(Ljava/util/Collection;)V
1: aload 3
invokeinterface java.util.Collection.size:()I
iconst_1
if_icmpne 7
2: aload 3
invokestatic com.google.common.collect.Iterables.getOnlyElement:(Ljava/lang/Iterable;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
invokevirtual org.apache.cassandra.db.Mutation.getPartitionUpdates:()Ljava/util/Collection;
invokestatic com.google.common.collect.Lists.newArrayList:(Ljava/lang/Iterable;)Ljava/util/ArrayList;
astore 4
start local 4 3: aload 4
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 5
4: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "The updates generated by triggers are not all for the same partition"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.List
StackMap stack:
aload 0
aload 1
aload 2
aload 4
invokestatic com.google.common.collect.Iterables.getOnlyElement:(Ljava/lang/Iterable;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.partitions.PartitionUpdate
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.validateSamePartition:(Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/partitions/PartitionUpdate;)V
6: aload 4
areturn
end local 4 7: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 3
invokeinterface java.util.Collection.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 8: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 15
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.UUID org.apache.cassandra.db.DecoratedKey java.util.Collection java.util.ArrayList top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 5
start local 5 10: aload 5
invokevirtual org.apache.cassandra.db.Mutation.getPartitionUpdates:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 8
goto 14
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.UUID org.apache.cassandra.db.DecoratedKey java.util.Collection java.util.ArrayList org.apache.cassandra.db.Mutation java.util.Iterator top java.util.Iterator
StackMap stack:
11: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.partitions.PartitionUpdate
astore 7
start local 7 12: aload 0
aload 1
aload 2
aload 7
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.validateSamePartition:(Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/partitions/PartitionUpdate;)V
13: aload 4
aload 7
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 7 14: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
end local 5 15: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.UUID org.apache.cassandra.db.DecoratedKey java.util.Collection java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
16: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 17 1 cfId Ljava/util/UUID;
0 17 2 key Lorg/apache/cassandra/db/DecoratedKey;
0 17 3 tmutations Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
3 7 4 updates Ljava/util/List<Lorg/apache/cassandra/db/partitions/PartitionUpdate;>;
8 17 4 updates Ljava/util/ArrayList<Lorg/apache/cassandra/db/partitions/PartitionUpdate;>;
10 15 5 mutation Lorg/apache/cassandra/db/Mutation;
12 14 7 update Lorg/apache/cassandra/db/partitions/PartitionUpdate;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;)Ljava/util/List<Lorg/apache/cassandra/db/partitions/PartitionUpdate;>;
MethodParameters:
Name Flags
cfId
key
tmutations
private void validateSamePartition(java.util.UUID, org.apache.cassandra.db.DecoratedKey, org.apache.cassandra.db.partitions.PartitionUpdate);
descriptor: (Ljava/util/UUID;Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/partitions/PartitionUpdate;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 3
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.partitionKey:()Lorg/apache/cassandra/db/DecoratedKey;
invokevirtual org.apache.cassandra.db.DecoratedKey.equals:(Ljava/lang/Object;)Z
ifne 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Partition key of additional mutation does not match primary update key"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 3
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ifne 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "table of additional mutation does not match primary update table"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 5 1 cfId Ljava/util/UUID;
0 5 2 key Lorg/apache/cassandra/db/DecoratedKey;
0 5 3 update Lorg/apache/cassandra/db/partitions/PartitionUpdate;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
cfId
key
update
private void validate(java.util.Collection<org.apache.cassandra.db.Mutation>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.Mutation
astore 2
start local 2 2: aload 2
invokevirtual org.apache.cassandra.db.Mutation.key:()Lorg/apache/cassandra/db/DecoratedKey;
invokevirtual org.apache.cassandra.db.DecoratedKey.getKey:()Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.cql3.QueryProcessor.validateKey:(Ljava/nio/ByteBuffer;)V
3: aload 2
invokevirtual org.apache.cassandra.db.Mutation.getPartitionUpdates:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection org.apache.cassandra.db.Mutation java.util.Iterator top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.partitions.PartitionUpdate
astore 4
start local 4 5: aload 4
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.validate:()V
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 2 7: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor java.util.Collection top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 9 1 tmutations Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
2 7 2 mutation Lorg/apache/cassandra/db/Mutation;
5 6 4 update Lorg/apache/cassandra/db/partitions/PartitionUpdate;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;)V
MethodParameters:
Name Flags
tmutations
private java.util.List<org.apache.cassandra.db.Mutation> executeInternal(org.apache.cassandra.db.partitions.PartitionUpdate);
descriptor: (Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.config.CFMetaData.getTriggers:()Lorg/apache/cassandra/schema/Triggers;
astore 2
start local 2 1: aload 2
invokevirtual org.apache.cassandra.schema.Triggers.isEmpty:()Z
ifeq 3
2: aconst_null
areturn
3: StackMap locals: org.apache.cassandra.schema.Triggers
StackMap stack:
invokestatic com.google.common.collect.Lists.newLinkedList:()Ljava/util/LinkedList;
astore 3
start local 3 4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.customClassLoader:Ljava/lang/ClassLoader;
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
5: aload 2
invokevirtual org.apache.cassandra.schema.Triggers.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.apache.cassandra.triggers.TriggerExecutor org.apache.cassandra.db.partitions.PartitionUpdate org.apache.cassandra.schema.Triggers java.util.List top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.schema.TriggerMetadata
astore 4
start local 4 7: aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
aload 4
getfield org.apache.cassandra.schema.TriggerMetadata.classOption:Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.triggers.ITrigger
astore 6
start local 6 8: aload 6
ifnonnull 11
9: aload 0
aload 4
getfield org.apache.cassandra.schema.TriggerMetadata.classOption:Ljava/lang/String;
invokevirtual org.apache.cassandra.triggers.TriggerExecutor.loadTriggerInstance:(Ljava/lang/String;)Lorg/apache/cassandra/triggers/ITrigger;
astore 6
10: aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
aload 4
getfield org.apache.cassandra.schema.TriggerMetadata.classOption:Ljava/lang/String;
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor org.apache.cassandra.db.partitions.PartitionUpdate org.apache.cassandra.schema.Triggers java.util.List org.apache.cassandra.schema.TriggerMetadata java.util.Iterator org.apache.cassandra.triggers.ITrigger
StackMap stack:
aload 6
aload 1
invokeinterface org.apache.cassandra.triggers.ITrigger.augment:(Lorg/apache/cassandra/db/partitions/Partition;)Ljava/util/Collection;
astore 7
start local 7 12: aload 7
ifnull 14
13: aload 3
aload 7
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 7 end local 6 end local 4 14: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor org.apache.cassandra.db.partitions.PartitionUpdate org.apache.cassandra.schema.Triggers java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
15: aload 3
astore 9
16: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.parent:Ljava/lang/ClassLoader;
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
17: aload 9
areturn
18: StackMap locals: org.apache.cassandra.triggers.TriggerExecutor org.apache.cassandra.db.partitions.PartitionUpdate org.apache.cassandra.schema.Triggers java.util.List
StackMap stack: org.apache.cassandra.exceptions.CassandraException
astore 4
start local 4 19: aload 4
athrow
end local 4 20: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 21: new java.lang.RuntimeException
dup
ldc "Exception while executing trigger on table with ID: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 22: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
23: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.parent:Ljava/lang/ClassLoader;
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
24: aload 8
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 25 1 update Lorg/apache/cassandra/db/partitions/PartitionUpdate;
1 25 2 triggers Lorg/apache/cassandra/schema/Triggers;
4 25 3 tmutations Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
7 14 4 td Lorg/apache/cassandra/schema/TriggerMetadata;
8 14 6 trigger Lorg/apache/cassandra/triggers/ITrigger;
12 14 7 temp Ljava/util/Collection<Lorg/apache/cassandra/db/Mutation;>;
19 20 4 ex Lorg/apache/cassandra/exceptions/CassandraException;
21 22 4 ex Ljava/lang/Exception;
Exception table:
from to target type
5 16 18 Class org.apache.cassandra.exceptions.CassandraException
5 16 20 Class java.lang.Exception
5 16 22 any
18 22 22 any
Signature: (Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Ljava/util/List<Lorg/apache/cassandra/db/Mutation;>;
MethodParameters:
Name Flags
update
public synchronized org.apache.cassandra.triggers.ITrigger loadTriggerInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/triggers/ITrigger;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 2
1: aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.cachedTriggers:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.triggers.ITrigger
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.triggers.TriggerExecutor.customClassLoader:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.triggers.ITrigger
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/triggers/TriggerExecutor;
0 3 1 triggerName Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
triggerName
}
SourceFile: "TriggerExecutor.java"