public class org.apache.cassandra.db.view.ViewManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.view.ViewManager
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final com.google.common.util.concurrent.Striped<java.util.concurrent.locks.Lock> LOCKS;
descriptor: Lcom/google/common/util/concurrent/Striped;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/google/common/util/concurrent/Striped<Ljava/util/concurrent/locks/Lock;>;
private static final boolean enableCoordinatorBatchlog;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.ConcurrentMap<java.lang.String, org.apache.cassandra.db.view.View> viewsByName;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lorg/apache/cassandra/db/view/View;>;
private final java.util.concurrent.ConcurrentMap<java.util.UUID, org.apache.cassandra.db.view.TableViews> viewsByBaseTable;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/util/UUID;Lorg/apache/cassandra/db/view/TableViews;>;
private final org.apache.cassandra.db.Keyspace keyspace;
descriptor: Lorg/apache/cassandra/db/Keyspace;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/view/ViewManager;
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.db.view.ViewManager.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/view/ViewManager;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.view.ViewManager.logger:Lorg/slf4j/Logger;
4: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getConcurrentViewWriters:()I
sipush 1024
imul
invokestatic com.google.common.util.concurrent.Striped.lazyWeakLock:(I)Lcom/google/common/util/concurrent/Striped;
putstatic org.apache.cassandra.db.view.ViewManager.LOCKS:Lcom/google/common/util/concurrent/Striped;
5: ldc "cassandra.mv_enable_coordinator_batchlog"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
putstatic org.apache.cassandra.db.view.ViewManager.enableCoordinatorBatchlog:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.Keyspace);
descriptor: (Lorg/apache/cassandra/db/Keyspace;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.db.view.ViewManager.viewsByBaseTable:Ljava/util/concurrent/ConcurrentMap;
3: aload 0
aload 1
putfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 5 1 keyspace Lorg/apache/cassandra/db/Keyspace;
MethodParameters:
Name Flags
keyspace
public boolean updatesAffectView(java.util.Collection<? extends org.apache.cassandra.db.IMutation>, );
descriptor: (Ljava/util/Collection;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.db.view.ViewManager.enableCoordinatorBatchlog:Z
ifne 2
iload 2
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Collection int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.IMutation
astore 3
start local 3 4: aload 3
invokeinterface org.apache.cassandra.db.IMutation.getPartitionUpdates:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Collection int org.apache.cassandra.db.IMutation java.util.Iterator top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.partitions.PartitionUpdate
astore 5
start local 5 6: getstatic org.apache.cassandra.db.view.ViewManager.$assertionsDisabled:Z
ifne 7
aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
aload 5
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Collection int org.apache.cassandra.db.IMutation java.util.Iterator org.apache.cassandra.db.partitions.PartitionUpdate java.util.Iterator
StackMap stack:
iload 2
ifeq 9
aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getReplicationFactor:()I
iconst_1
if_icmpne 9
8: goto 11
9: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual org.apache.cassandra.db.partitions.PartitionUpdate.metadata:()Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.db.view.ViewManager.forTable:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/view/TableViews;
aload 5
invokevirtual org.apache.cassandra.db.view.TableViews.updatedViews:(Lorg/apache/cassandra/db/partitions/PartitionUpdate;)Ljava/util/Collection;
invokeinterface java.util.Collection.isEmpty:()Z
ifne 11
10: iconst_1
ireturn
end local 5 11: StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Collection int org.apache.cassandra.db.IMutation java.util.Iterator top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 12: StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Collection int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 14 1 mutations Ljava/util/Collection<+Lorg/apache/cassandra/db/IMutation;>;
0 14 2 coordinatorBatchlog Z
4 12 3 mutation Lorg/apache/cassandra/db/IMutation;
6 11 5 update Lorg/apache/cassandra/db/partitions/PartitionUpdate;
Signature: (Ljava/util/Collection<+Lorg/apache/cassandra/db/IMutation;>;Z)Z
MethodParameters:
Name Flags
mutations
coordinatorBatchlog
private java.lang.Iterable<org.apache.cassandra.db.view.View> allViews();
descriptor: ()Ljava/lang/Iterable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/ViewManager;
Signature: ()Ljava/lang/Iterable<Lorg/apache/cassandra/db/view/View;>;
public void update(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.View
astore 2
start local 2 1: getstatic org.apache.cassandra.db.view.ViewManager.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
ldc "When updating a view, it should already be in the ViewManager"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: org.apache.cassandra.db.view.View
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.db.view.View.build:()V
3: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getMetadata:()Lorg/apache/cassandra/schema/KeyspaceMetadata;
getfield org.apache.cassandra.schema.KeyspaceMetadata.views:Lorg/apache/cassandra/schema/Views;
aload 1
invokevirtual org.apache.cassandra.schema.Views.get:(Ljava/lang/String;)Ljava/util/Optional;
astore 3
start local 3 4: getstatic org.apache.cassandra.db.view.ViewManager.$assertionsDisabled:Z
ifne 5
aload 3
invokevirtual java.util.Optional.isPresent:()Z
ifne 5
new java.lang.AssertionError
dup
ldc "When updating a view, it should still be in the Keyspaces views"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
5: StackMap locals: java.util.Optional
StackMap stack:
aload 2
aload 3
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
invokevirtual org.apache.cassandra.db.view.View.updateDefinition:(Lorg/apache/cassandra/config/ViewDefinition;)V
6: return
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/db/view/ViewManager;
0 7 1 viewName Ljava/lang/String;
1 7 2 view Lorg/apache/cassandra/db/view/View;
4 7 3 viewDefinition Ljava/util/Optional<Lorg/apache/cassandra/config/ViewDefinition;>;
MethodParameters:
Name Flags
viewName
public void reload();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getMetadata:()Lorg/apache/cassandra/schema/KeyspaceMetadata;
getfield org.apache.cassandra.schema.KeyspaceMetadata.views:Lorg/apache/cassandra/schema/Views;
invokevirtual org.apache.cassandra.schema.Views.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
astore 2
start local 2 3: aload 1
aload 2
getfield org.apache.cassandra.config.ViewDefinition.viewName:Ljava/lang/String;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals:
StackMap stack:
6: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 7: aload 1
aload 2
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 9
8: aload 0
aload 2
invokevirtual org.apache.cassandra.db.view.ViewManager.removeView:(Ljava/lang/String;)V
end local 2 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
10: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 14
StackMap locals:
StackMap stack:
11: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 12: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
ifne 14
13: aload 0
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
invokevirtual org.apache.cassandra.db.view.ViewManager.addView:(Lorg/apache/cassandra/config/ViewDefinition;)V
end local 2 14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
15: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.isInitialized:()Z
ifne 20
16: getstatic org.apache.cassandra.db.view.ViewManager.logger:Lorg/slf4j/Logger;
ldc "Not submitting build tasks for views in keyspace {} as storage service is not initialized"
17: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
18: invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
19: return
20: StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Map
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.db.view.ViewManager.allViews:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 24
StackMap locals: org.apache.cassandra.db.view.ViewManager java.util.Map top java.util.Iterator
StackMap stack:
21: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.View
astore 2
start local 2 22: aload 2
invokevirtual org.apache.cassandra.db.view.View.build:()V
23: aload 2
aload 1
aload 2
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.config.ViewDefinition
invokevirtual org.apache.cassandra.db.view.View.updateDefinition:(Lorg/apache/cassandra/config/ViewDefinition;)V
end local 2 24: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
25: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/cassandra/db/view/ViewManager;
1 26 1 newViewsByName Ljava/util/Map<Ljava/lang/String;Lorg/apache/cassandra/config/ViewDefinition;>;
3 4 2 definition Lorg/apache/cassandra/config/ViewDefinition;
7 9 2 viewName Ljava/lang/String;
12 14 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/apache/cassandra/config/ViewDefinition;>;
22 24 2 view Lorg/apache/cassandra/db/view/View;
public void addView(org.apache.cassandra.config.ViewDefinition);
descriptor: (Lorg/apache/cassandra/config/ViewDefinition;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
aload 1
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
invokevirtual org.apache.cassandra.db.Keyspace.hasColumnFamilyStore:(Ljava/util/UUID;)Z
ifne 6
1: getstatic org.apache.cassandra.db.view.ViewManager.logger:Lorg/slf4j/Logger;
ldc "Not adding view {} because the base table {} is unknown"
2: aload 1
getfield org.apache.cassandra.config.ViewDefinition.viewName:Ljava/lang/String;
3: aload 1
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
4: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
5: return
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.db.view.View
dup
aload 1
aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
aload 1
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/util/UUID;)Lorg/apache/cassandra/db/ColumnFamilyStore;
invokespecial org.apache.cassandra.db.view.View.<init>:(Lorg/apache/cassandra/config/ViewDefinition;Lorg/apache/cassandra/db/ColumnFamilyStore;)V
astore 2
start local 2 7: aload 0
aload 2
invokevirtual org.apache.cassandra.db.view.View.getDefinition:()Lorg/apache/cassandra/config/ViewDefinition;
invokevirtual org.apache.cassandra.config.ViewDefinition.baseTableMetadata:()Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.db.view.ViewManager.forTable:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/view/TableViews;
aload 2
invokevirtual org.apache.cassandra.db.view.TableViews.add:(Lorg/apache/cassandra/db/view/View;)Z
pop
8: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
aload 1
getfield org.apache.cassandra.config.ViewDefinition.viewName:Ljava/lang/String;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 10 1 definition Lorg/apache/cassandra/config/ViewDefinition;
7 10 2 view Lorg/apache/cassandra/db/view/View;
MethodParameters:
Name Flags
definition
public void removeView(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.View
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: org.apache.cassandra.db.view.View
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.db.view.View.getDefinition:()Lorg/apache/cassandra/config/ViewDefinition;
invokevirtual org.apache.cassandra.config.ViewDefinition.baseTableMetadata:()Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.db.view.ViewManager.forTable:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/view/TableViews;
aload 1
invokevirtual org.apache.cassandra.db.view.TableViews.removeByName:(Ljava/lang/String;)V
4: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
aload 2
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokestatic org.apache.cassandra.db.SystemKeyspace.setViewRemoved:(Ljava/lang/String;Ljava/lang/String;)V
5: aload 0
getfield org.apache.cassandra.db.view.ViewManager.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
aload 2
getfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.setViewRemoved:(Ljava/lang/String;Ljava/lang/String;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 7 1 name Ljava/lang/String;
1 7 2 view Lorg/apache/cassandra/db/view/View;
MethodParameters:
Name Flags
name
public org.apache.cassandra.db.view.View getByName(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/db/view/View;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByName:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.View
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void buildAllViews();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.view.ViewManager.allViews:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: org.apache.cassandra.db.view.ViewManager top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.View
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.db.view.View.build:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/view/ViewManager;
2 3 1 view Lorg/apache/cassandra/db/view/View;
public org.apache.cassandra.db.view.TableViews forTable(org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/view/TableViews;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
astore 2
start local 2 1: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByBaseTable:Ljava/util/concurrent/ConcurrentMap;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.TableViews
astore 3
start local 3 2: aload 3
ifnonnull 7
3: new org.apache.cassandra.db.view.TableViews
dup
aload 1
invokespecial org.apache.cassandra.db.view.TableViews.<init>:(Lorg/apache/cassandra/config/CFMetaData;)V
astore 3
4: aload 0
getfield org.apache.cassandra.db.view.ViewManager.viewsByBaseTable:Ljava/util/concurrent/ConcurrentMap;
aload 2
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.view.TableViews
astore 4
start local 4 5: aload 4
ifnull 7
6: aload 4
astore 3
end local 4 7: StackMap locals: java.util.UUID org.apache.cassandra.db.view.TableViews
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/view/ViewManager;
0 8 1 metadata Lorg/apache/cassandra/config/CFMetaData;
1 8 2 baseId Ljava/util/UUID;
2 8 3 views Lorg/apache/cassandra/db/view/TableViews;
5 7 4 previous Lorg/apache/cassandra/db/view/TableViews;
MethodParameters:
Name Flags
metadata
public static java.util.concurrent.locks.Lock acquireLockFor(int);
descriptor: (I)Ljava/util/concurrent/locks/Lock;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.apache.cassandra.db.view.ViewManager.LOCKS:Lcom/google/common/util/concurrent/Striped;
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual com.google.common.util.concurrent.Striped.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.locks.Lock
astore 1
start local 1 1: aload 1
invokeinterface java.util.concurrent.locks.Lock.tryLock:()Z
ifeq 3
2: aload 1
areturn
3: StackMap locals: java.util.concurrent.locks.Lock
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 keyAndCfidHash I
1 4 1 lock Ljava/util/concurrent/locks/Lock;
MethodParameters:
Name Flags
keyAndCfidHash
}
SourceFile: "ViewManager.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map