public class org.apache.cassandra.schema.Indexes implements java.lang.Iterable<org.apache.cassandra.schema.IndexMetadata>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.schema.Indexes
super_class: java.lang.Object
{
private final com.google.common.collect.ImmutableMap<java.lang.String, org.apache.cassandra.schema.IndexMetadata> indexesByName;
descriptor: Lcom/google/common/collect/ImmutableMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/collect/ImmutableMap<Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata;>;
private final com.google.common.collect.ImmutableMap<java.util.UUID, org.apache.cassandra.schema.IndexMetadata> indexesById;
descriptor: Lcom/google/common/collect/ImmutableMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/collect/ImmutableMap<Ljava/util/UUID;Lorg/apache/cassandra/schema/IndexMetadata;>;
private void <init>(org.apache.cassandra.schema.Indexes$Builder);
descriptor: (Lorg/apache/cassandra/schema/Indexes$Builder;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
getfield org.apache.cassandra.schema.Indexes$Builder.indexesByName:Lcom/google/common/collect/ImmutableMap$Builder;
invokevirtual com.google.common.collect.ImmutableMap$Builder.build:()Lcom/google/common/collect/ImmutableMap;
putfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
2: aload 0
aload 1
getfield org.apache.cassandra.schema.Indexes$Builder.indexesById:Lcom/google/common/collect/ImmutableMap$Builder;
invokevirtual com.google.common.collect.ImmutableMap$Builder.build:()Lcom/google/common/collect/ImmutableMap;
putfield org.apache.cassandra.schema.Indexes.indexesById:Lcom/google/common/collect/ImmutableMap;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/schema/Indexes;
0 4 1 builder Lorg/apache/cassandra/schema/Indexes$Builder;
MethodParameters:
Name Flags
builder
public static org.apache.cassandra.schema.Indexes$Builder builder();
descriptor: ()Lorg/apache/cassandra/schema/Indexes$Builder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.cassandra.schema.Indexes$Builder
dup
invokespecial org.apache.cassandra.schema.Indexes$Builder.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.cassandra.schema.Indexes none();
descriptor: ()Lorg/apache/cassandra/schema/Indexes;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.apache.cassandra.schema.Indexes.builder:()Lorg/apache/cassandra/schema/Indexes$Builder;
invokevirtual org.apache.cassandra.schema.Indexes$Builder.build:()Lorg/apache/cassandra/schema/Indexes;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.util.Iterator<org.apache.cassandra.schema.IndexMetadata> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.values:()Lcom/google/common/collect/ImmutableCollection;
invokevirtual com.google.common.collect.ImmutableCollection.iterator:()Lcom/google/common/collect/UnmodifiableIterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
Signature: ()Ljava/util/Iterator<Lorg/apache/cassandra/schema/IndexMetadata;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
public java.util.Optional<org.apache.cassandra.schema.IndexMetadata> get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
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.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
aload 1
invokevirtual com.google.common.collect.ImmutableMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.schema.IndexMetadata
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
0 1 1 name Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Lorg/apache/cassandra/schema/IndexMetadata;>;
MethodParameters:
Name Flags
name
public boolean has(java.lang.String);
descriptor: (Ljava/lang/String;)Z
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.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
aload 1
invokevirtual com.google.common.collect.ImmutableMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.util.Optional<org.apache.cassandra.schema.IndexMetadata> get(java.util.UUID);
descriptor: (Ljava/util/UUID;)Ljava/util/Optional;
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.schema.Indexes.indexesById:Lcom/google/common/collect/ImmutableMap;
aload 1
invokevirtual com.google.common.collect.ImmutableMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.schema.IndexMetadata
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
0 1 1 id Ljava/util/UUID;
Signature: (Ljava/util/UUID;)Ljava/util/Optional<Lorg/apache/cassandra/schema/IndexMetadata;>;
MethodParameters:
Name Flags
id
public boolean has(java.util.UUID);
descriptor: (Ljava/util/UUID;)Z
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.schema.Indexes.indexesById:Lcom/google/common/collect/ImmutableMap;
aload 1
invokevirtual com.google.common.collect.ImmutableMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
0 1 1 id Ljava/util/UUID;
MethodParameters:
Name Flags
id
public org.apache.cassandra.schema.Indexes with(org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/schema/Indexes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual org.apache.cassandra.schema.Indexes.get:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Index %s already exists"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.schema.Indexes.builder:()Lorg/apache/cassandra/schema/Indexes$Builder;
aload 0
invokevirtual org.apache.cassandra.schema.Indexes$Builder.add:(Ljava/lang/Iterable;)Lorg/apache/cassandra/schema/Indexes$Builder;
aload 1
invokevirtual org.apache.cassandra.schema.Indexes$Builder.add:(Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/schema/Indexes$Builder;
invokevirtual org.apache.cassandra.schema.Indexes$Builder.build:()Lorg/apache/cassandra/schema/Indexes;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/schema/Indexes;
0 3 1 index Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
index
public org.apache.cassandra.schema.Indexes without(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/schema/Indexes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.schema.Indexes.get:(Ljava/lang/String;)Ljava/util/Optional;
aload 1
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/apache/cassandra/schema/Indexes.lambda$0(Ljava/lang/String;)Ljava/lang/IllegalStateException; (6)
()Ljava/lang/IllegalStateException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast org.apache.cassandra.schema.IndexMetadata
astore 2
start local 2 1: invokestatic org.apache.cassandra.schema.Indexes.builder:()Lorg/apache/cassandra/schema/Indexes$Builder;
aload 0
aload 2
invokedynamic apply(Lorg/apache/cassandra/schema/IndexMetadata;)Lcom/google/common/base/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/apache/cassandra/schema/Indexes.lambda$1(Lorg/apache/cassandra/schema/IndexMetadata;Lorg/apache/cassandra/schema/IndexMetadata;)Z (6)
(Lorg/apache/cassandra/schema/IndexMetadata;)Z
invokestatic com.google.common.collect.Iterables.filter:(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
invokevirtual org.apache.cassandra.schema.Indexes$Builder.add:(Ljava/lang/Iterable;)Lorg/apache/cassandra/schema/Indexes$Builder;
invokevirtual org.apache.cassandra.schema.Indexes$Builder.build:()Lorg/apache/cassandra/schema/Indexes;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/schema/Indexes;
0 2 1 name Ljava/lang/String;
1 2 2 index Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
name
public org.apache.cassandra.schema.Indexes replace(org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/schema/Indexes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual org.apache.cassandra.schema.Indexes.without:(Ljava/lang/String;)Lorg/apache/cassandra/schema/Indexes;
aload 1
invokevirtual org.apache.cassandra.schema.Indexes.with:(Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/schema/Indexes;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
0 1 1 index Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
index
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 2
aload 1
instanceof org.apache.cassandra.schema.Indexes
ifeq 1
aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
aload 1
checkcast org.apache.cassandra.schema.Indexes
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.equals:(Ljava/lang/Object;)Z
ifne 2
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
StackMap locals:
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/schema/Indexes;
0 3 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.Indexes.indexesByName:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.values:()Lcom/google/common/collect/ImmutableCollection;
invokevirtual com.google.common.collect.ImmutableCollection.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/Indexes;
public static java.lang.String getAvailableIndexName(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.config.Schema.getKSMetaData:(Ljava/lang/String;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
astore 3
start local 3 1: aload 3
ifnonnull 2
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
goto 3
StackMap locals: org.apache.cassandra.schema.KeyspaceMetadata
StackMap stack:
2: aload 3
aconst_null
invokevirtual org.apache.cassandra.schema.KeyspaceMetadata.existingIndexNames:(Ljava/lang/String;)Ljava/util/Set;
StackMap locals:
StackMap stack: java.util.Set
3: astore 4
start local 4 4: aload 1
aload 2
invokestatic org.apache.cassandra.schema.IndexMetadata.getDefaultIndexName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 5: aload 5
astore 6
start local 6 6: iconst_0
istore 7
start local 7 7: goto 9
8: StackMap locals: java.lang.String java.lang.String java.lang.String org.apache.cassandra.schema.KeyspaceMetadata java.util.Set java.lang.String java.lang.String int
StackMap stack:
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
iinc 7 1
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
9: StackMap locals:
StackMap stack:
aload 4
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 8
10: aload 6
areturn
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 11 0 ksName Ljava/lang/String;
0 11 1 cfName Ljava/lang/String;
0 11 2 indexNameRoot Ljava/lang/String;
1 11 3 ksm Lorg/apache/cassandra/schema/KeyspaceMetadata;
4 11 4 existingNames Ljava/util/Set<Ljava/lang/String;>;
5 11 5 baseName Ljava/lang/String;
6 11 6 acceptedName Ljava/lang/String;
7 11 7 i I
MethodParameters:
Name Flags
ksName
cfName
indexNameRoot
private static java.lang.IllegalStateException lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/IllegalStateException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=1, args_size=1
0: new java.lang.IllegalStateException
dup
ldc "Index %s doesn't exist"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$1(org.apache.cassandra.schema.IndexMetadata, org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/schema/IndexMetadata;Lorg/apache/cassandra/schema/IndexMetadata;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
if_acmpeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 v Lorg/apache/cassandra/schema/IndexMetadata;
}
Signature: Ljava/lang/Object;Ljava/lang/Iterable<Lorg/apache/cassandra/schema/IndexMetadata;>;
SourceFile: "Indexes.java"
NestMembers:
org.apache.cassandra.schema.Indexes$Builder
InnerClasses:
public Builder = com.google.common.collect.ImmutableMap$Builder of com.google.common.collect.ImmutableMap
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = org.apache.cassandra.schema.Indexes$Builder of org.apache.cassandra.schema.Indexes