public final class org.apache.cassandra.schema.IndexMetadata
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.schema.IndexMetadata
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 java.util.regex.Pattern PATTERN_NON_WORD_CHAR;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern PATTERN_WORD_CHARS;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.schema.IndexMetadata$Serializer serializer;
descriptor: Lorg/apache/cassandra/schema/IndexMetadata$Serializer;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public final java.util.UUID id;
descriptor: Ljava/util/UUID;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final org.apache.cassandra.schema.IndexMetadata$Kind kind;
descriptor: Lorg/apache/cassandra/schema/IndexMetadata$Kind;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final java.util.Map<java.lang.String, java.lang.String> options;
descriptor: Ljava/util/Map;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/schema/IndexMetadata;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.schema.IndexMetadata.logger:Lorg/slf4j/Logger;
1: ldc "\\W"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.schema.IndexMetadata.PATTERN_NON_WORD_CHAR:Ljava/util/regex/Pattern;
2: ldc "\\w+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.schema.IndexMetadata.PATTERN_WORD_CHARS:Ljava/util/regex/Pattern;
3: new org.apache.cassandra.schema.IndexMetadata$Serializer
dup
invokespecial org.apache.cassandra.schema.IndexMetadata$Serializer.<init>:()V
putstatic org.apache.cassandra.schema.IndexMetadata.serializer:Lorg/apache/cassandra/schema/IndexMetadata$Serializer;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, org.apache.cassandra.schema.IndexMetadata$Kind);
descriptor: (Ljava/lang/String;Ljava/util/Map;Lorg/apache/cassandra/schema/IndexMetadata$Kind;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual java.lang.String.getBytes:()[B
invokestatic java.util.UUID.nameUUIDFromBytes:([B)Ljava/util/UUID;
putfield org.apache.cassandra.schema.IndexMetadata.id:Ljava/util/UUID;
2: aload 0
aload 1
putfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
3: aload 0
aload 2
ifnonnull 4
invokestatic com.google.common.collect.ImmutableMap.of:()Lcom/google/common/collect/ImmutableMap;
goto 5
StackMap locals: org.apache.cassandra.schema.IndexMetadata java.lang.String java.util.Map org.apache.cassandra.schema.IndexMetadata$Kind
StackMap stack: org.apache.cassandra.schema.IndexMetadata
4: aload 2
invokestatic com.google.common.collect.ImmutableMap.copyOf:(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
StackMap locals: org.apache.cassandra.schema.IndexMetadata java.lang.String java.util.Map org.apache.cassandra.schema.IndexMetadata$Kind
StackMap stack: org.apache.cassandra.schema.IndexMetadata com.google.common.collect.ImmutableMap
5: putfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
6: aload 0
aload 3
putfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
7: return
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/schema/IndexMetadata;
0 8 1 name Ljava/lang/String;
0 8 2 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 8 3 kind Lorg/apache/cassandra/schema/IndexMetadata$Kind;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lorg/apache/cassandra/schema/IndexMetadata$Kind;)V
MethodParameters:
Name Flags
name
options
kind
public static org.apache.cassandra.schema.IndexMetadata fromLegacyMetadata(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.config.ColumnDefinition, java.lang.String, org.apache.cassandra.schema.IndexMetadata$Kind, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition;Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map;)Lorg/apache/cassandra/schema/IndexMetadata;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 5
start local 5 1: aload 4
ifnull 3
2: aload 5
aload 4
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: StackMap locals: java.util.Map
StackMap stack:
aload 5
ldc "index_keys"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 7
4: aload 5
ldc "index_keys"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: new org.apache.cassandra.cql3.statements.IndexTarget
dup
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getstatic org.apache.cassandra.cql3.statements.IndexTarget$Type.KEYS:Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
invokespecial org.apache.cassandra.cql3.statements.IndexTarget.<init>:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;)V
astore 6
start local 6 6: goto 15
end local 6 7: StackMap locals:
StackMap stack:
aload 5
ldc "index_keys_and_values"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
8: aload 5
ldc "index_keys"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
9: new org.apache.cassandra.cql3.statements.IndexTarget
dup
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getstatic org.apache.cassandra.cql3.statements.IndexTarget$Type.KEYS_AND_VALUES:Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
invokespecial org.apache.cassandra.cql3.statements.IndexTarget.<init>:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;)V
astore 6
start local 6 10: goto 15
end local 6 11: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isCollection:()Z
ifeq 14
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isMultiCell:()Z
ifne 14
12: new org.apache.cassandra.cql3.statements.IndexTarget
dup
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getstatic org.apache.cassandra.cql3.statements.IndexTarget$Type.FULL:Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
invokespecial org.apache.cassandra.cql3.statements.IndexTarget.<init>:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;)V
astore 6
start local 6 13: goto 15
end local 6 14: StackMap locals:
StackMap stack:
new org.apache.cassandra.cql3.statements.IndexTarget
dup
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getstatic org.apache.cassandra.cql3.statements.IndexTarget$Type.VALUES:Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
invokespecial org.apache.cassandra.cql3.statements.IndexTarget.<init>:(Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;)V
astore 6
start local 6 15: StackMap locals: org.apache.cassandra.cql3.statements.IndexTarget
StackMap stack:
aload 5
ldc "target"
aload 6
aload 0
invokevirtual org.apache.cassandra.cql3.statements.IndexTarget.asCqlString:(Lorg/apache/cassandra/config/CFMetaData;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: new org.apache.cassandra.schema.IndexMetadata
dup
aload 2
aload 5
aload 3
invokespecial org.apache.cassandra.schema.IndexMetadata.<init>:(Ljava/lang/String;Ljava/util/Map;Lorg/apache/cassandra/schema/IndexMetadata$Kind;)V
areturn
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 17 0 cfm Lorg/apache/cassandra/config/CFMetaData;
0 17 1 column Lorg/apache/cassandra/config/ColumnDefinition;
0 17 2 name Ljava/lang/String;
0 17 3 kind Lorg/apache/cassandra/schema/IndexMetadata$Kind;
0 17 4 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 17 5 newOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
6 7 6 target Lorg/apache/cassandra/cql3/statements/IndexTarget;
10 11 6 target Lorg/apache/cassandra/cql3/statements/IndexTarget;
13 14 6 target Lorg/apache/cassandra/cql3/statements/IndexTarget;
15 17 6 target Lorg/apache/cassandra/cql3/statements/IndexTarget;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition;Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
cfm
column
name
kind
options
public static org.apache.cassandra.schema.IndexMetadata fromSchemaMetadata(java.lang.String, org.apache.cassandra.schema.IndexMetadata$Kind, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map;)Lorg/apache/cassandra/schema/IndexMetadata;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.cassandra.schema.IndexMetadata
dup
aload 0
aload 2
aload 1
invokespecial org.apache.cassandra.schema.IndexMetadata.<init>:(Ljava/lang/String;Ljava/util/Map;Lorg/apache/cassandra/schema/IndexMetadata$Kind;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
0 1 1 kind Lorg/apache/cassandra/schema/IndexMetadata$Kind;
0 1 2 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
name
kind
options
public static org.apache.cassandra.schema.IndexMetadata fromIndexTargets(org.apache.cassandra.config.CFMetaData, java.util.List<org.apache.cassandra.cql3.statements.IndexTarget>, java.lang.String, org.apache.cassandra.schema.IndexMetadata$Kind, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map;)Lorg/apache/cassandra/schema/IndexMetadata;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.util.HashMap
dup
aload 4
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 5
start local 5 1: aload 5
ldc "target"
aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: aload 0
invokedynamic apply(Lorg/apache/cassandra/config/CFMetaData;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
org/apache/cassandra/schema/IndexMetadata.lambda$0(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/cql3/statements/IndexTarget;)Ljava/lang/String; (6)
(Lorg/apache/cassandra/cql3/statements/IndexTarget;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
4: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: new org.apache.cassandra.schema.IndexMetadata
dup
aload 2
aload 5
aload 3
invokespecial org.apache.cassandra.schema.IndexMetadata.<init>:(Ljava/lang/String;Ljava/util/Map;Lorg/apache/cassandra/schema/IndexMetadata$Kind;)V
areturn
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 6 0 cfm Lorg/apache/cassandra/config/CFMetaData;
0 6 1 targets Ljava/util/List<Lorg/apache/cassandra/cql3/statements/IndexTarget;>;
0 6 2 name Ljava/lang/String;
0 6 3 kind Lorg/apache/cassandra/schema/IndexMetadata$Kind;
0 6 4 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 6 5 newOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List<Lorg/apache/cassandra/cql3/statements/IndexTarget;>;Ljava/lang/String;Lorg/apache/cassandra/schema/IndexMetadata$Kind;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
cfm
targets
name
kind
options
public static boolean isNameValid(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifne 1
getstatic org.apache.cassandra.schema.IndexMetadata.PATTERN_WORD_CHARS:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String getDefaultIndexName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: getstatic org.apache.cassandra.schema.IndexMetadata.PATTERN_NON_WORD_CHAR:Ljava/util/regex/Pattern;
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "idx"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc ""
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.schema.IndexMetadata.PATTERN_NON_WORD_CHAR:Ljava/util/regex/Pattern;
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "_idx"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc ""
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 cfName Ljava/lang/String;
0 3 1 root Ljava/lang/String;
MethodParameters:
Name Flags
cfName
root
public void validate(org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokestatic org.apache.cassandra.schema.IndexMetadata.isNameValid:(Ljava/lang/String;)Z
ifne 2
1: new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
ldc "Illegal index name "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
ifnonnull 4
3: new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
ldc "Index kind is null for index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
getstatic org.apache.cassandra.schema.IndexMetadata$Kind.CUSTOM:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
if_acmpne 14
5: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
ifnull 6
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
ldc "class_name"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 9
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Required option missing for index %s : %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
7: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
aastore
dup
iconst_1
ldc "class_name"
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
ldc "class_name"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 10: aload 2
ldc "custom indexer"
invokestatic org.apache.cassandra.utils.FBUtilities.classForName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 11: ldc Lorg/apache/cassandra/index/Index;
aload 3
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 13
12: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Specified Indexer class (%s) does not implement the Indexer interface"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: java.lang.String java.lang.Class
StackMap stack:
aload 0
aload 1
aload 3
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
invokevirtual org.apache.cassandra.schema.IndexMetadata.validateCustomIndexOptions:(Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/Class;Ljava/util/Map;)V
end local 3 end local 2 14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/schema/IndexMetadata;
0 15 1 cfm Lorg/apache/cassandra/config/CFMetaData;
10 14 2 className Ljava/lang/String;
11 14 3 indexerClass Ljava/lang/Class<Lorg/apache/cassandra/index/Index;>;
MethodParameters:
Name Flags
cfm
private void validateCustomIndexOptions(org.apache.cassandra.config.CFMetaData, java.lang.Class<? extends org.apache.cassandra.index.Index>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/Class;Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokedynamic apply()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/IndexMetadata.lambda$1(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokestatic com.google.common.collect.Maps.filterKeys:(Ljava/util/Map;Lcom/google/common/base/Predicate;)Ljava/util/Map;
1: astore 4
start local 4 2: aload 4
invokeinterface java.util.Map.isEmpty:()Z
ifeq 4
3: return
4: StackMap locals: java.util.Map
StackMap stack:
aload 2
ldc "validateOptions"
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/util/Map;
aastore
dup
iconst_1
ldc Lorg/apache/cassandra/config/CFMetaData;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 5
start local 5 5: goto 8
end local 5 6: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
pop
7: aload 2
ldc "validateOptions"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/util/Map;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 5
start local 5 8: StackMap locals: java.util.Map
StackMap stack:
aload 5
invokeinterface java.util.Map.isEmpty:()Z
ifne 22
9: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Properties specified %s are not understood by %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aastore
dup
iconst_1
aload 2
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 10: StackMap locals: org.apache.cassandra.schema.IndexMetadata org.apache.cassandra.config.CFMetaData java.lang.Class java.util.Map
StackMap stack: java.lang.NoSuchMethodException
pop
11: getstatic org.apache.cassandra.schema.IndexMetadata.logger:Lorg/slf4j/Logger;
ldc "Indexer {} does not have a static validateOptions method. Validation ignored"
12: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
13: invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
goto 22
14: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 4
start local 4 15: aload 4
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
instanceof org.apache.cassandra.exceptions.ConfigurationException
ifeq 17
16: aload 4
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
checkcast org.apache.cassandra.exceptions.ConfigurationException
athrow
17: StackMap locals: java.lang.reflect.InvocationTargetException
StackMap stack:
new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
ldc "Failed to validate custom indexer options: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 4 18: StackMap locals: org.apache.cassandra.schema.IndexMetadata org.apache.cassandra.config.CFMetaData java.lang.Class java.util.Map
StackMap stack: org.apache.cassandra.exceptions.ConfigurationException
astore 4
start local 4 19: aload 4
athrow
end local 4 20: StackMap locals:
StackMap stack: java.lang.Exception
pop
21: new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
ldc "Failed to validate custom indexer options: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
return
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/schema/IndexMetadata;
0 23 1 cfm Lorg/apache/cassandra/config/CFMetaData;
0 23 2 indexerClass Ljava/lang/Class<+Lorg/apache/cassandra/index/Index;>;
0 23 3 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 10 4 filteredOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
5 6 5 unknownOptions Ljava/util/Map<**>;
8 10 5 unknownOptions Ljava/util/Map<**>;
15 18 4 e Ljava/lang/reflect/InvocationTargetException;
19 20 4 e Lorg/apache/cassandra/exceptions/ConfigurationException;
Exception table:
from to target type
4 5 6 Class java.lang.NoSuchMethodException
0 3 10 Class java.lang.NoSuchMethodException
4 10 10 Class java.lang.NoSuchMethodException
0 3 14 Class java.lang.reflect.InvocationTargetException
4 10 14 Class java.lang.reflect.InvocationTargetException
0 3 18 Class org.apache.cassandra.exceptions.ConfigurationException
4 10 18 Class org.apache.cassandra.exceptions.ConfigurationException
0 3 20 Class java.lang.Exception
4 10 20 Class java.lang.Exception
Exceptions:
throws org.apache.cassandra.exceptions.ConfigurationException
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/Class<+Lorg/apache/cassandra/index/Index;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
cfm
indexerClass
options
public boolean isCustom();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
getstatic org.apache.cassandra.schema.IndexMetadata$Kind.CUSTOM:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/schema/IndexMetadata;
public boolean isKeys();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
getstatic org.apache.cassandra.schema.IndexMetadata$Kind.KEYS:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/schema/IndexMetadata;
public boolean isComposites();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
getstatic org.apache.cassandra.schema.IndexMetadata$Kind.COMPOSITES:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/schema/IndexMetadata;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.id:Ljava/util/UUID;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
aastore
dup
iconst_3
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
aastore
invokestatic com.google.common.base.Objects.hashCode:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/IndexMetadata;
public boolean equalsWithoutName(org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/schema/IndexMetadata;)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.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
1: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/schema/IndexMetadata;
0 4 1 other Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
other
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.cassandra.schema.IndexMetadata
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.schema.IndexMetadata
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.schema.IndexMetadata.id:Ljava/util/UUID;
aload 2
getfield org.apache.cassandra.schema.IndexMetadata.id:Ljava/util/UUID;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
aload 2
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
aload 0
aload 2
invokevirtual org.apache.cassandra.schema.IndexMetadata.equalsWithoutName:(Lorg/apache/cassandra/schema/IndexMetadata;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: org.apache.cassandra.schema.IndexMetadata
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/schema/IndexMetadata;
0 7 1 obj Ljava/lang/Object;
5 7 2 other Lorg/apache/cassandra/schema/IndexMetadata;
MethodParameters:
Name Flags
obj
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.commons.lang3.builder.ToStringBuilder
dup
aload 0
invokespecial org.apache.commons.lang3.builder.ToStringBuilder.<init>:(Ljava/lang/Object;)V
1: ldc "id"
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.id:Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
invokevirtual org.apache.commons.lang3.builder.ToStringBuilder.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/commons/lang3/builder/ToStringBuilder;
2: ldc "name"
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual org.apache.commons.lang3.builder.ToStringBuilder.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/commons/lang3/builder/ToStringBuilder;
3: ldc "kind"
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
invokevirtual org.apache.commons.lang3.builder.ToStringBuilder.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/commons/lang3/builder/ToStringBuilder;
4: ldc "options"
aload 0
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
invokevirtual org.apache.commons.lang3.builder.ToStringBuilder.append:(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/commons/lang3/builder/ToStringBuilder;
5: invokevirtual org.apache.commons.lang3.builder.ToStringBuilder.build:()Ljava/lang/String;
6: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/schema/IndexMetadata;
private static java.lang.String lambda$0(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.cql3.statements.IndexTarget);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/cql3/statements/IndexTarget;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.IndexTarget.asCqlString:(Lorg/apache/cassandra/config/CFMetaData;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 target Lorg/apache/cassandra/cql3/statements/IndexTarget;
private static boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "class_name"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/String;
}
SourceFile: "IndexMetadata.java"
NestMembers:
org.apache.cassandra.schema.IndexMetadata$Kind org.apache.cassandra.schema.IndexMetadata$Serializer
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Type = org.apache.cassandra.cql3.statements.IndexTarget$Type of org.apache.cassandra.cql3.statements.IndexTarget
public final Kind = org.apache.cassandra.schema.IndexMetadata$Kind of org.apache.cassandra.schema.IndexMetadata
public Serializer = org.apache.cassandra.schema.IndexMetadata$Serializer of org.apache.cassandra.schema.IndexMetadata