public final class org.apache.cassandra.schema.CachingParams
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.schema.CachingParams
super_class: java.lang.Object
{
private static final java.lang.String ALL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ALL"
private static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "NONE"
static final boolean DEFAULT_CACHE_KEYS;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int DEFAULT_ROWS_PER_PARTITION_TO_CACHE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final org.apache.cassandra.schema.CachingParams CACHE_NOTHING;
descriptor: Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.schema.CachingParams CACHE_KEYS;
descriptor: Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.schema.CachingParams CACHE_EVERYTHING;
descriptor: Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static org.apache.cassandra.schema.CachingParams DEFAULT;
descriptor: Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
final boolean cacheKeys;
descriptor: Z
flags: (0x0010) ACC_FINAL
final int rowsPerPartitionToCache;
descriptor: I
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.apache.cassandra.schema.CachingParams
dup
iconst_0
iconst_0
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
putstatic org.apache.cassandra.schema.CachingParams.CACHE_NOTHING:Lorg/apache/cassandra/schema/CachingParams;
1: new org.apache.cassandra.schema.CachingParams
dup
iconst_1
iconst_0
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
putstatic org.apache.cassandra.schema.CachingParams.CACHE_KEYS:Lorg/apache/cassandra/schema/CachingParams;
2: new org.apache.cassandra.schema.CachingParams
dup
iconst_1
ldc 2147483647
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
putstatic org.apache.cassandra.schema.CachingParams.CACHE_EVERYTHING:Lorg/apache/cassandra/schema/CachingParams;
3: new org.apache.cassandra.schema.CachingParams
dup
iconst_1
iconst_0
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
putstatic org.apache.cassandra.schema.CachingParams.DEFAULT:Lorg/apache/cassandra/schema/CachingParams;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(boolean, int);
descriptor: (ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.apache.cassandra.schema.CachingParams.cacheKeys:Z
2: aload 0
iload 2
putfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/schema/CachingParams;
0 4 1 cacheKeys Z
0 4 2 rowsPerPartitionToCache I
MethodParameters:
Name Flags
cacheKeys
rowsPerPartitionToCache
public boolean cacheKeys();
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.CachingParams.cacheKeys:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/CachingParams;
public boolean cacheRows();
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.CachingParams.rowsPerPartitionToCache:I
ifle 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/CachingParams;
public boolean cacheAllRows();
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.CachingParams.rowsPerPartitionToCache:I
ldc 2147483647
if_icmpne 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/CachingParams;
public int rowsPerPartitionToCache();
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.CachingParams.rowsPerPartitionToCache:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/CachingParams;
public static org.apache.cassandra.schema.CachingParams fromMap(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
aload 0
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 1
start local 1 1: aload 1
getstatic org.apache.cassandra.schema.CachingParams$Option.KEYS:Lorg/apache/cassandra/schema/CachingParams$Option;
invokevirtual org.apache.cassandra.schema.CachingParams$Option.toString:()Ljava/lang/String;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 2
ifnull 3
aload 2
invokestatic org.apache.cassandra.schema.CachingParams.keysFromString:(Ljava/lang/String;)Z
ifeq 3
iconst_1
goto 4
StackMap locals: java.util.Map java.lang.String
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 3
start local 3 5: aload 1
getstatic org.apache.cassandra.schema.CachingParams$Option.ROWS_PER_PARTITION:Lorg/apache/cassandra/schema/CachingParams$Option;
invokevirtual org.apache.cassandra.schema.CachingParams$Option.toString:()Ljava/lang/String;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 4
ifnonnull 8
7: iconst_0
goto 9
8: StackMap locals: int java.lang.String
StackMap stack:
aload 4
invokestatic org.apache.cassandra.schema.CachingParams.rowsPerPartitionFromString:(Ljava/lang/String;)I
9: StackMap locals:
StackMap stack: int
istore 5
start local 5 10: aload 1
invokeinterface java.util.Map.isEmpty:()Z
ifne 16
11: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Invalid caching sub-options %s: only '%s' and '%s' are allowed"
iconst_3
anewarray java.lang.Object
dup
iconst_0
12: aload 1
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aastore
dup
iconst_1
13: getstatic org.apache.cassandra.schema.CachingParams$Option.KEYS:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
dup
iconst_2
14: getstatic org.apache.cassandra.schema.CachingParams$Option.ROWS_PER_PARTITION:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
15: 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
16: StackMap locals: int
StackMap stack:
new org.apache.cassandra.schema.CachingParams
dup
iload 3
iload 5
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)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 17 0 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 17 1 copy Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 17 2 keys Ljava/lang/String;
5 17 3 cacheKeys Z
6 17 4 rows Ljava/lang/String;
10 17 5 rowsPerPartitionToCache I
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/CachingParams;
MethodParameters:
Name Flags
map
public java.util.Map<java.lang.String, java.lang.String> asMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.schema.CachingParams$Option.KEYS:Lorg/apache/cassandra/schema/CachingParams$Option;
invokevirtual org.apache.cassandra.schema.CachingParams$Option.toString:()Ljava/lang/String;
1: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.keysAsString:()Ljava/lang/String;
2: getstatic org.apache.cassandra.schema.CachingParams$Option.ROWS_PER_PARTITION:Lorg/apache/cassandra/schema/CachingParams$Option;
invokevirtual org.apache.cassandra.schema.CachingParams$Option.toString:()Ljava/lang/String;
3: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.rowsPerPartitionAsString:()Ljava/lang/String;
4: invokestatic com.google.common.collect.ImmutableMap.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/schema/CachingParams;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private static boolean keysFromString(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
ldc "ALL"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "NONE"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Invalid value '%s' for caching sub-option '%s': only '%s' and '%s' are allowed"
iconst_4
anewarray java.lang.Object
dup
iconst_0
5: aload 0
aastore
dup
iconst_1
6: getstatic org.apache.cassandra.schema.CachingParams$Option.KEYS:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
dup
iconst_2
7: ldc "ALL"
aastore
dup
iconst_3
8: ldc "NONE"
aastore
9: 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 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
java.lang.String keysAsString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.CachingParams.cacheKeys:Z
ifeq 1
ldc "ALL"
goto 2
StackMap locals:
StackMap stack:
1: ldc "NONE"
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/schema/CachingParams;
private static int rowsPerPartitionFromString(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
ldc "ALL"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: ldc 2147483647
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "NONE"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.commons.lang3.StringUtils.isNumeric:(Ljava/lang/CharSequence;)Z
ifeq 6
5: aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
ireturn
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Invalid value '%s' for caching sub-option '%s': only '%s', '%s', and integer values are allowed"
iconst_4
anewarray java.lang.Object
dup
iconst_0
7: aload 0
aastore
dup
iconst_1
8: getstatic org.apache.cassandra.schema.CachingParams$Option.ROWS_PER_PARTITION:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
dup
iconst_2
9: ldc "ALL"
aastore
dup
iconst_3
10: ldc "NONE"
aastore
11: 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 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
java.lang.String rowsPerPartitionAsString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
ifne 2
1: ldc "NONE"
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
ldc 2147483647
if_icmpne 4
3: ldc "ALL"
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/schema/CachingParams;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "{'%s' : '%s', '%s' : '%s'}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
1: getstatic org.apache.cassandra.schema.CachingParams$Option.KEYS:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
dup
iconst_1
2: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.keysAsString:()Ljava/lang/String;
aastore
dup
iconst_2
3: getstatic org.apache.cassandra.schema.CachingParams$Option.ROWS_PER_PARTITION:Lorg/apache/cassandra/schema/CachingParams$Option;
aastore
dup
iconst_3
4: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.rowsPerPartitionAsString:()Ljava/lang/String;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/schema/CachingParams;
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 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.cassandra.schema.CachingParams
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.schema.CachingParams
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.schema.CachingParams.cacheKeys:Z
aload 2
getfield org.apache.cassandra.schema.CachingParams.cacheKeys:Z
if_icmpne 6
aload 0
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
aload 2
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
if_icmpne 6
iconst_1
ireturn
StackMap locals: org.apache.cassandra.schema.CachingParams
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/CachingParams;
0 7 1 o Ljava/lang/Object;
5 7 2 c Lorg/apache/cassandra/schema/CachingParams;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.schema.CachingParams.cacheKeys:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
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/CachingParams;
}
SourceFile: "CachingParams.java"
NestMembers:
org.apache.cassandra.schema.CachingParams$Option
InnerClasses:
public final Option = org.apache.cassandra.schema.CachingParams$Option of org.apache.cassandra.schema.CachingParams