public class org.apache.cassandra.index.TargetParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.index.TargetParser
super_class: java.lang.Object
{
private static final java.util.regex.Pattern TARGET_REGEX;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern TWO_QUOTES;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String QUOTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\""
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=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/index/TargetParser;
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.index.TargetParser.$assertionsDisabled:Z
3: ldc "^(keys|entries|values|full)\\((.+)\\)$"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.index.TargetParser.TARGET_REGEX:Ljava/util/regex/Pattern;
4: ldc "\"\""
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.index.TargetParser.TWO_QUOTES:Ljava/util/regex/Pattern;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/index/TargetParser;
public static org.apache.cassandra.utils.Pair<org.apache.cassandra.config.ColumnDefinition, org.apache.cassandra.cql3.statements.IndexTarget$Type> parse(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.schema.IndexMetadata);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/utils/Pair;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
ldc "target"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: getstatic org.apache.cassandra.index.TargetParser.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
ldc "No target definition found for index %s"
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.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 2
invokestatic org.apache.cassandra.index.TargetParser.parse:(Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Unable to parse targets for index %s (%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
aastore
dup
iconst_1
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
5: StackMap locals: org.apache.cassandra.utils.Pair
StackMap stack:
aload 3
areturn
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 indexDef Lorg/apache/cassandra/schema/IndexMetadata;
1 6 2 target Ljava/lang/String;
3 6 3 result Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;>;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;>;
MethodParameters:
Name Flags
cfm
indexDef
public static org.apache.cassandra.utils.Pair<org.apache.cassandra.config.ColumnDefinition, org.apache.cassandra.cql3.statements.IndexTarget$Type> parse(org.apache.cassandra.config.CFMetaData, java.lang.String);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.index.TargetParser.TARGET_REGEX:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 1: aload 2
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 5
2: aload 2
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic org.apache.cassandra.cql3.statements.IndexTarget$Type.fromString:(Ljava/lang/String;)Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
astore 4
start local 4 3: aload 2
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 3
start local 3 4: goto 7
end local 4 end local 3 5: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 1
astore 3
start local 3 6: getstatic org.apache.cassandra.cql3.statements.IndexTarget$Type.VALUES:Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
astore 4
start local 4 7: StackMap locals: java.lang.String org.apache.cassandra.cql3.statements.IndexTarget$Type
StackMap stack:
aload 3
ldc "\""
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
8: aload 3
iconst_1
invokestatic org.apache.commons.lang3.StringUtils.substring:(Ljava/lang/String;I)Ljava/lang/String;
iconst_0
iconst_m1
invokestatic org.apache.commons.lang3.StringUtils.substring:(Ljava/lang/String;II)Ljava/lang/String;
astore 3
9: getstatic org.apache.cassandra.index.TargetParser.TWO_QUOTES:Ljava/util/regex/Pattern;
aload 3
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;
astore 3
10: StackMap locals:
StackMap stack:
aload 0
new org.apache.cassandra.cql3.ColumnIdentifier
dup
aload 3
iconst_1
invokespecial org.apache.cassandra.cql3.ColumnIdentifier.<init>:(Ljava/lang/String;Z)V
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 5
start local 5 11: aload 5
ifnull 13
12: aload 5
aload 4
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
areturn
13: StackMap locals: org.apache.cassandra.config.ColumnDefinition
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.allColumns:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 17
StackMap locals: org.apache.cassandra.config.CFMetaData java.lang.String java.util.regex.Matcher java.lang.String org.apache.cassandra.cql3.statements.IndexTarget$Type org.apache.cassandra.config.ColumnDefinition top java.util.Iterator
StackMap stack:
14: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
astore 6
start local 6 15: aload 6
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
invokevirtual org.apache.cassandra.cql3.ColumnIdentifier.toString:()Ljava/lang/String;
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
16: aload 6
aload 4
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
areturn
end local 6 17: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: aconst_null
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 19 0 cfm Lorg/apache/cassandra/config/CFMetaData;
0 19 1 target Ljava/lang/String;
1 19 2 matcher Ljava/util/regex/Matcher;
4 5 3 columnName Ljava/lang/String;
6 19 3 columnName Ljava/lang/String;
3 5 4 targetType Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
7 19 4 targetType Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;
11 19 5 cd Lorg/apache/cassandra/config/ColumnDefinition;
15 17 6 column Lorg/apache/cassandra/config/ColumnDefinition;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;>;
MethodParameters:
Name Flags
cfm
target
}
SourceFile: "TargetParser.java"
InnerClasses:
public final Type = org.apache.cassandra.cql3.statements.IndexTarget$Type of org.apache.cassandra.cql3.statements.IndexTarget