public final class org.apache.cassandra.db.ConsistencyLevel extends java.lang.Enum<org.apache.cassandra.db.ConsistencyLevel>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: org.apache.cassandra.db.ConsistencyLevel
super_class: java.lang.Enum
{
public static final org.apache.cassandra.db.ConsistencyLevel ANY;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel ONE;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel TWO;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel THREE;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel QUORUM;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel ALL;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel LOCAL_QUORUM;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel EACH_QUORUM;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel SERIAL;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel LOCAL_SERIAL;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.apache.cassandra.db.ConsistencyLevel LOCAL_ONE;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public final int code;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final boolean isDCLocal;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final org.apache.cassandra.db.ConsistencyLevel[] codeIdx;
descriptor: [Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$config$ReadRepairDecision;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static final org.apache.cassandra.db.ConsistencyLevel[] ENUM$VALUES;
descriptor: [Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=5, args_size=0
0: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "ANY"
iconst_0
iconst_0
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
1: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "ONE"
iconst_1
iconst_1
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
2: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "TWO"
iconst_2
iconst_2
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.TWO:Lorg/apache/cassandra/db/ConsistencyLevel;
3: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "THREE"
iconst_3
iconst_3
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.THREE:Lorg/apache/cassandra/db/ConsistencyLevel;
4: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "QUORUM"
iconst_4
iconst_4
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
5: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "ALL"
iconst_5
iconst_5
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.ALL:Lorg/apache/cassandra/db/ConsistencyLevel;
6: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "LOCAL_QUORUM"
bipush 6
bipush 6
iconst_1
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;IIZ)V
putstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
7: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "EACH_QUORUM"
bipush 7
bipush 7
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
8: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "SERIAL"
bipush 8
bipush 8
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
9: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "LOCAL_SERIAL"
bipush 9
bipush 9
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;II)V
putstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
10: new org.apache.cassandra.db.ConsistencyLevel
dup
ldc "LOCAL_ONE"
bipush 10
bipush 10
iconst_1
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;IIZ)V
putstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
bipush 11
anewarray org.apache.cassandra.db.ConsistencyLevel
dup
iconst_0
getstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
iconst_1
getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
iconst_2
getstatic org.apache.cassandra.db.ConsistencyLevel.TWO:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
iconst_3
getstatic org.apache.cassandra.db.ConsistencyLevel.THREE:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
iconst_4
getstatic org.apache.cassandra.db.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
iconst_5
getstatic org.apache.cassandra.db.ConsistencyLevel.ALL:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
bipush 6
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
bipush 7
getstatic org.apache.cassandra.db.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
bipush 8
getstatic org.apache.cassandra.db.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
bipush 9
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
dup
bipush 10
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
aastore
putstatic org.apache.cassandra.db.ConsistencyLevel.ENUM$VALUES:[Lorg/apache/cassandra/db/ConsistencyLevel;
11: ldc Lorg/apache/cassandra/db/ConsistencyLevel;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.ConsistencyLevel.logger:Lorg/slf4j/Logger;
12: iconst_m1
istore 0
start local 0 13: invokestatic org.apache.cassandra.db.ConsistencyLevel.values:()[Lorg/apache/cassandra/db/ConsistencyLevel;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 17
StackMap locals: int top int int org.apache.cassandra.db.ConsistencyLevel[]
StackMap stack:
14: aload 4
iload 2
aaload
astore 1
start local 1 15: iload 0
aload 1
getfield org.apache.cassandra.db.ConsistencyLevel.code:I
invokestatic java.lang.Math.max:(II)I
istore 0
end local 1 16: iinc 2 1
StackMap locals:
StackMap stack:
17: iload 2
iload 3
if_icmplt 14
18: iload 0
iconst_1
iadd
anewarray org.apache.cassandra.db.ConsistencyLevel
putstatic org.apache.cassandra.db.ConsistencyLevel.codeIdx:[Lorg/apache/cassandra/db/ConsistencyLevel;
19: invokestatic org.apache.cassandra.db.ConsistencyLevel.values:()[Lorg/apache/cassandra/db/ConsistencyLevel;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 25
StackMap locals:
StackMap stack:
20: aload 4
iload 2
aaload
astore 1
start local 1 21: getstatic org.apache.cassandra.db.ConsistencyLevel.codeIdx:[Lorg/apache/cassandra/db/ConsistencyLevel;
aload 1
getfield org.apache.cassandra.db.ConsistencyLevel.code:I
aaload
ifnull 23
22: new java.lang.IllegalStateException
dup
ldc "Duplicate code"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: int org.apache.cassandra.db.ConsistencyLevel int int org.apache.cassandra.db.ConsistencyLevel[]
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.codeIdx:[Lorg/apache/cassandra/db/ConsistencyLevel;
aload 1
getfield org.apache.cassandra.db.ConsistencyLevel.code:I
aload 1
aastore
end local 1 24: iinc 2 1
StackMap locals: int top int int org.apache.cassandra.db.ConsistencyLevel[]
StackMap stack:
25: iload 2
iload 3
if_icmplt 20
end local 0 26: return
LocalVariableTable:
Start End Slot Name Signature
13 26 0 maxCode I
15 16 1 cl Lorg/apache/cassandra/db/ConsistencyLevel;
21 24 1 cl Lorg/apache/cassandra/db/ConsistencyLevel;
private void <init>(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 3 0: aload 0
aload 1
iload 2
iload 3
iconst_0
invokespecial org.apache.cassandra.db.ConsistencyLevel.<init>:(Ljava/lang/String;IIZ)V
1: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 2 3 code I
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
code
private void <init>(java.lang.String, int, int, boolean);
descriptor: (Ljava/lang/String;IIZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=5
start local 0 start local 3 start local 4 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
1: aload 0
iload 3
putfield org.apache.cassandra.db.ConsistencyLevel.code:I
2: aload 0
iload 4
putfield org.apache.cassandra.db.ConsistencyLevel.isDCLocal:Z
3: return
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 4 3 code I
0 4 4 isDCLocal Z
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
code
isDCLocal
public static org.apache.cassandra.db.ConsistencyLevel fromCode(int);
descriptor: (I)Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: iload 0
iflt 1
iload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.codeIdx:[Lorg/apache/cassandra/db/ConsistencyLevel;
arraylength
if_icmplt 2
1: StackMap locals:
StackMap stack:
new org.apache.cassandra.transport.ProtocolException
dup
ldc "Unknown code %d for a consistency level"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.transport.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.codeIdx:[Lorg/apache/cassandra/db/ConsistencyLevel;
iload 0
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 code I
MethodParameters:
Name Flags
code
private int quorumFor(org.apache.cassandra.db.Keyspace);
descriptor: (Lorg/apache/cassandra/db/Keyspace;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getReplicationFactor:()I
iconst_2
idiv
iconst_1
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 1 1 keyspace Lorg/apache/cassandra/db/Keyspace;
MethodParameters:
Name Flags
keyspace
private int localQuorumFor(org.apache.cassandra.db.Keyspace, java.lang.String);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifeq 2
1: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
checkcast org.apache.cassandra.locator.NetworkTopologyStrategy
aload 2
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy.getReplicationFactor:(Ljava/lang/String;)I
iconst_2
idiv
iconst_1
iadd
goto 3
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.quorumFor:(Lorg/apache/cassandra/db/Keyspace;)I
3: StackMap locals:
StackMap stack: int
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 4 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 4 2 dc Ljava/lang/String;
MethodParameters:
Name Flags
keyspace
dc
public int blockFor(org.apache.cassandra.db.Keyspace);
descriptor: (Lorg/apache/cassandra/db/Keyspace;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 1 - 11
1: 2
2: 1
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 5
10: 7
11: 1
default: 17
}
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_2
ireturn
4: StackMap locals:
StackMap stack:
iconst_3
ireturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.quorumFor:(Lorg/apache/cassandra/db/Keyspace;)I
ireturn
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getReplicationFactor:()I
ireturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.localQuorumFor:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
ireturn
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifeq 16
9: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
checkcast org.apache.cassandra.locator.NetworkTopologyStrategy
astore 2
start local 2 10: iconst_0
istore 3
start local 3 11: aload 2
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy.getDatacenters:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace org.apache.cassandra.locator.NetworkTopologyStrategy int top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 13: iload 3
aload 0
aload 1
aload 4
invokevirtual org.apache.cassandra.db.ConsistencyLevel.localQuorumFor:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
iadd
istore 3
end local 4 14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: iload 3
ireturn
end local 3 end local 2 16: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.quorumFor:(Lorg/apache/cassandra/db/Keyspace;)I
ireturn
17: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Invalid consistency level: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 18 1 keyspace Lorg/apache/cassandra/db/Keyspace;
10 16 2 strategy Lorg/apache/cassandra/locator/NetworkTopologyStrategy;
11 16 3 n I
13 14 4 dc Ljava/lang/String;
MethodParameters:
Name Flags
keyspace
public boolean isDatacenterLocal();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.ConsistencyLevel.isDCLocal:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
public boolean isLocal(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 1 1 endpoint Ljava/net/InetAddress;
MethodParameters:
Name Flags
endpoint
public int countLocalEndpoints(java.lang.Iterable<java.net.InetAddress>);
descriptor: (Ljava/lang/Iterable;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.db.ConsistencyLevel java.lang.Iterable int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isLocal:(Ljava/net/InetAddress;)Z
ifeq 5
4: iinc 2 1
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 7 1 liveEndpoints Ljava/lang/Iterable<Ljava/net/InetAddress;>;
1 7 2 count I
3 5 3 endpoint Ljava/net/InetAddress;
Signature: (Ljava/lang/Iterable<Ljava/net/InetAddress;>;)I
MethodParameters:
Name Flags
liveEndpoints
private java.util.Map<java.lang.String, java.lang.Integer> countPerDCEndpoints(org.apache.cassandra.db.Keyspace, java.lang.Iterable<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
checkcast org.apache.cassandra.locator.NetworkTopologyStrategy
astore 3
start local 3 1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 2: aload 3
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy.getDatacenters:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 5
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable org.apache.cassandra.locator.NetworkTopologyStrategy java.util.Map top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 4
aload 5
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 2
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals:
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 5
start local 5 8: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 5
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
astore 7
start local 7 9: aload 4
aload 7
aload 4
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
11: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 12 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 12 2 liveEndpoints Ljava/lang/Iterable<Ljava/net/InetAddress;>;
1 12 3 strategy Lorg/apache/cassandra/locator/NetworkTopologyStrategy;
2 12 4 dcEndpoints Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
4 5 5 dc Ljava/lang/String;
8 10 5 endpoint Ljava/net/InetAddress;
9 10 7 dc Ljava/lang/String;
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable<Ljava/net/InetAddress;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
MethodParameters:
Name Flags
keyspace
liveEndpoints
public java.util.List<java.net.InetAddress> filterForQuery(org.apache.cassandra.db.Keyspace, java.util.List<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
getstatic org.apache.cassandra.config.ReadRepairDecision.NONE:Lorg/apache/cassandra/config/ReadRepairDecision;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.filterForQuery:(Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 1 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 1 2 liveEndpoints Ljava/util/List<Ljava/net/InetAddress;>;
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List<Ljava/net/InetAddress;>;)Ljava/util/List<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
keyspace
liveEndpoints
public java.util.List<java.net.InetAddress> filterForQuery(org.apache.cassandra.db.Keyspace, java.util.List<java.net.InetAddress>, org.apache.cassandra.config.ReadRepairDecision);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
if_acmpne 2
aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifeq 2
1: aload 0
aload 1
aload 2
aload 3
invokevirtual org.apache.cassandra.db.ConsistencyLevel.filterForEachQuorum:(Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.ConsistencyLevel.isDCLocal:Z
ifeq 4
3: aload 2
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalComparator:()Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
4: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$config$ReadRepairDecision:()[I
aload 3
invokevirtual org.apache.cassandra.config.ReadRepairDecision.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 5
2: 6
3: 7
default: 19
}
5: StackMap locals:
StackMap stack:
aload 2
iconst_0
aload 2
invokeinterface java.util.List.size:()I
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
invokestatic java.lang.Math.min:(II)I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
areturn
6: StackMap locals:
StackMap stack:
aload 2
areturn
7: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 8: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 9: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 14
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision java.util.List java.util.List top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 6
start local 6 11: aload 0
aload 6
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isLocal:(Ljava/net/InetAddress;)Z
ifeq 13
12: aload 4
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
goto 14
13: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision java.util.List java.util.List java.net.InetAddress java.util.Iterator
StackMap stack:
aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 14: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
15: aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
istore 6
start local 6 16: aload 4
invokeinterface java.util.List.size:()I
iload 6
if_icmpge 18
17: aload 4
aload 5
iconst_0
iload 6
aload 4
invokeinterface java.util.List.size:()I
isub
aload 5
invokeinterface java.util.List.size:()I
invokestatic java.lang.Math.min:(II)I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
18: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision java.util.List java.util.List int
StackMap stack:
aload 4
areturn
end local 6 end local 5 end local 4 19: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 20 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 20 2 liveEndpoints Ljava/util/List<Ljava/net/InetAddress;>;
0 20 3 readRepair Lorg/apache/cassandra/config/ReadRepairDecision;
8 19 4 local Ljava/util/List<Ljava/net/InetAddress;>;
9 19 5 other Ljava/util/List<Ljava/net/InetAddress;>;
11 14 6 add Ljava/net/InetAddress;
16 19 6 blockFor I
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List<Ljava/net/InetAddress;>;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
keyspace
liveEndpoints
readRepair
private java.util.List<java.net.InetAddress> filterForEachQuorum(org.apache.cassandra.db.Keyspace, java.util.List<java.net.InetAddress>, org.apache.cassandra.config.ReadRepairDecision);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
checkcast org.apache.cassandra.locator.NetworkTopologyStrategy
astore 4
start local 4 1: aload 3
getstatic org.apache.cassandra.config.ReadRepairDecision.GLOBAL:Lorg/apache/cassandra/config/ReadRepairDecision;
if_acmpne 3
2: aload 2
areturn
3: StackMap locals: org.apache.cassandra.locator.NetworkTopologyStrategy
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 5
start local 5 4: aload 4
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy.getDatacenters:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 7
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision org.apache.cassandra.locator.NetworkTopologyStrategy java.util.Map top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 6: aload 5
aload 6
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 7: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 12
StackMap locals:
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 6
start local 6 10: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 6
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
astore 8
start local 8 11: aload 5
aload 8
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 6 12: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 14: aload 5
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 20
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision org.apache.cassandra.locator.NetworkTopologyStrategy java.util.Map java.util.List top java.util.Iterator
StackMap stack:
15: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 7
start local 7 16: aload 7
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
astore 9
start local 9 17: aload 3
getstatic org.apache.cassandra.config.ReadRepairDecision.DC_LOCAL:Lorg/apache/cassandra/config/ReadRepairDecision;
if_acmpne 19
aload 7
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
18: aload 6
aload 9
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
goto 20
19: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision org.apache.cassandra.locator.NetworkTopologyStrategy java.util.Map java.util.List java.util.Map$Entry java.util.Iterator java.util.List
StackMap stack:
aload 6
aload 9
iconst_0
aload 0
aload 1
aload 7
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.apache.cassandra.db.ConsistencyLevel.localQuorumFor:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
aload 9
invokeinterface java.util.List.size:()I
invokestatic java.lang.Math.min:(II)I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 9 end local 7 20: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.util.List org.apache.cassandra.config.ReadRepairDecision org.apache.cassandra.locator.NetworkTopologyStrategy java.util.Map java.util.List top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
21: aload 6
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 22 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 22 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 22 2 liveEndpoints Ljava/util/List<Ljava/net/InetAddress;>;
0 22 3 readRepair Lorg/apache/cassandra/config/ReadRepairDecision;
1 22 4 strategy Lorg/apache/cassandra/locator/NetworkTopologyStrategy;
4 22 5 dcsEndpoints Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/net/InetAddress;>;>;
6 7 6 dc Ljava/lang/String;
10 12 6 add Ljava/net/InetAddress;
11 12 8 dc Ljava/lang/String;
14 22 6 waitSet Ljava/util/List<Ljava/net/InetAddress;>;
16 20 7 dcEndpoints Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/net/InetAddress;>;>;
17 20 9 dcEndpoint Ljava/util/List<Ljava/net/InetAddress;>;
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/util/List<Ljava/net/InetAddress;>;Lorg/apache/cassandra/config/ReadRepairDecision;)Ljava/util/List<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
keyspace
liveEndpoints
readRepair
public boolean isSufficientLiveNodes(org.apache.cassandra.db.Keyspace, java.lang.Iterable<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
lookupswitch { // 4
1: 1
7: 4
8: 6
11: 2
default: 13
}
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countLocalEndpoints:(Ljava/lang/Iterable;)I
iconst_1
if_icmplt 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countLocalEndpoints:(Ljava/lang/Iterable;)I
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
if_icmplt 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifeq 13
7: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countPerDCEndpoints:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 9: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
aload 0
aload 1
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.apache.cassandra.db.ConsistencyLevel.localQuorumFor:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
if_icmpge 11
10: iconst_0
ireturn
end local 3 11: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
12: iconst_1
ireturn
13: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable
StackMap stack:
aload 2
invokestatic com.google.common.collect.Iterables.size:(Ljava/lang/Iterable;)I
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
if_icmplt 14
iconst_1
ireturn
StackMap locals:
StackMap stack:
14: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 15 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 15 2 liveEndpoints Ljava/lang/Iterable<Ljava/net/InetAddress;>;
9 11 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable<Ljava/net/InetAddress;>;)Z
MethodParameters:
Name Flags
keyspace
liveEndpoints
public void assureSufficientLiveNodes(org.apache.cassandra.db.Keyspace, java.lang.Iterable<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
istore 3
start local 3 1: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
lookupswitch { // 4
1: 2
7: 5
8: 17
11: 3
default: 26
}
2: StackMap locals: int
StackMap stack:
goto 30
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countLocalEndpoints:(Ljava/lang/Iterable;)I
ifne 30
4: new org.apache.cassandra.exceptions.UnavailableException
dup
aload 0
iconst_1
iconst_0
invokespecial org.apache.cassandra.exceptions.UnavailableException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;II)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countLocalEndpoints:(Ljava/lang/Iterable;)I
istore 4
start local 4 6: iload 4
iload 3
if_icmpge 30
7: getstatic org.apache.cassandra.db.ConsistencyLevel.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 16
8: new java.lang.StringBuilder
dup
ldc "Local replicas ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 5
start local 5 9: aload 2
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable int int java.lang.StringBuilder top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 6
start local 6 11: aload 0
aload 6
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isLocal:(Ljava/net/InetAddress;)Z
ifeq 13
12: aload 5
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 13: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
14: aload 5
ldc "] are insufficient to satisfy LOCAL_QUORUM requirement of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " live nodes in '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: getstatic org.apache.cassandra.db.ConsistencyLevel.logger:Lorg/slf4j/Logger;
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;)V
end local 5 16: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable int int
StackMap stack:
new org.apache.cassandra.exceptions.UnavailableException
dup
aload 0
iload 3
iload 4
invokespecial org.apache.cassandra.exceptions.UnavailableException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;II)V
athrow
end local 4 17: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifeq 26
18: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.db.ConsistencyLevel.countPerDCEndpoints:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 24
StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable int top top java.util.Iterator
StackMap stack:
19: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 20: aload 0
aload 1
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.apache.cassandra.db.ConsistencyLevel.localQuorumFor:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/String;)I
istore 7
start local 7 21: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 8
start local 8 22: iload 8
iload 7
if_icmpge 24
23: new org.apache.cassandra.exceptions.UnavailableException
dup
aload 0
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
iload 7
iload 8
invokespecial org.apache.cassandra.exceptions.UnavailableException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;Ljava/lang/String;II)V
athrow
end local 8 end local 7 end local 5 24: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
25: goto 30
26: StackMap locals: org.apache.cassandra.db.ConsistencyLevel org.apache.cassandra.db.Keyspace java.lang.Iterable int
StackMap stack:
aload 2
invokestatic com.google.common.collect.Iterables.size:(Ljava/lang/Iterable;)I
istore 5
start local 5 27: iload 5
iload 3
if_icmpge 30
28: getstatic org.apache.cassandra.db.ConsistencyLevel.logger:Lorg/slf4j/Logger;
ldc "Live nodes {} do not satisfy ConsistencyLevel ({} required)"
aload 2
invokestatic com.google.common.collect.Iterables.toString:(Ljava/lang/Iterable;)Ljava/lang/String;
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
29: new org.apache.cassandra.exceptions.UnavailableException
dup
aload 0
iload 3
iload 5
invokespecial org.apache.cassandra.exceptions.UnavailableException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;II)V
athrow
end local 5 30: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 31 1 keyspace Lorg/apache/cassandra/db/Keyspace;
0 31 2 liveEndpoints Ljava/lang/Iterable<Ljava/net/InetAddress;>;
1 31 3 blockFor I
6 17 4 localLive I
9 16 5 builder Ljava/lang/StringBuilder;
11 13 6 endpoint Ljava/net/InetAddress;
20 24 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;
21 24 7 dcBlockFor I
22 24 8 dcLive I
27 30 5 live I
Exceptions:
throws org.apache.cassandra.exceptions.UnavailableException
Signature: (Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
keyspace
liveEndpoints
public void validateForRead(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 1 - 1
1: 1
default: 2
}
1: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ANY ConsistencyLevel is only supported for writes"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 3 1 keyspaceName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
public void validateForWrite(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 9 - 10
9: 1
10: 1
default: 2
}
1: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "You must use conditional updates for serializable writes"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 3 1 keyspaceName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
public void validateForCasCommit(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 8 - 10
8: 1
9: 3
10: 3
default: 4
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.db.ConsistencyLevel.requireNetworkTopologyStrategy:(Ljava/lang/String;)V
2: goto 4
3: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not supported as conditional update commit consistency. Use ANY if you mean \"make sure it is accepted but I don't care how many replicas commit it for non-SERIAL reads\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 5 1 keyspaceName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
public void validateForCas();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isSerialConsistency:()Z
ifne 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid consistency for conditional update. Must be one of SERIAL or LOCAL_SERIAL"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
public boolean isSerialConsistency();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
if_acmpeq 1
aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
public void validateCounterForWrite(org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
if_acmpne 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "Consistency level ANY is not yet supported for counter table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
getfield org.apache.cassandra.config.CFMetaData.cfName: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.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isSerialConsistency:()Z
ifeq 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Counter operations are inherently non-serializable"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 5 1 metadata Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
private void requireNetworkTopologyStrategy(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
astore 2
start local 2 1: aload 2
instanceof org.apache.cassandra.locator.NetworkTopologyStrategy
ifne 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "consistency level %s not compatible with replication strategy (%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/ConsistencyLevel;
0 4 1 keyspaceName Ljava/lang/String;
1 4 2 strategy Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
public static org.apache.cassandra.db.ConsistencyLevel[] values();
descriptor: ()[Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic org.apache.cassandra.db.ConsistencyLevel.ENUM$VALUES:[Lorg/apache/cassandra/db/ConsistencyLevel;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray org.apache.cassandra.db.ConsistencyLevel
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.cassandra.db.ConsistencyLevel valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lorg/apache/cassandra/db/ConsistencyLevel;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast org.apache.cassandra.db.ConsistencyLevel
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
static int[] $SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.db.ConsistencyLevel.values:()[Lorg/apache/cassandra/db/ConsistencyLevel;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.ALL:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 6
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 8
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 11
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 7
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 10
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iconst_2
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iconst_5
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
bipush 9
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.THREE:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iconst_4
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic org.apache.cassandra.db.ConsistencyLevel.TWO:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iconst_3
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
dup
putstatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$org$apache$cassandra$config$ReadRepairDecision();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$config$ReadRepairDecision:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.config.ReadRepairDecision.values:()[Lorg/apache/cassandra/config/ReadRepairDecision;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.config.ReadRepairDecision.DC_LOCAL:Lorg/apache/cassandra/config/ReadRepairDecision;
invokevirtual org.apache.cassandra.config.ReadRepairDecision.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.config.ReadRepairDecision.GLOBAL:Lorg/apache/cassandra/config/ReadRepairDecision;
invokevirtual org.apache.cassandra.config.ReadRepairDecision.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.config.ReadRepairDecision.NONE:Lorg/apache/cassandra/config/ReadRepairDecision;
invokevirtual org.apache.cassandra.config.ReadRepairDecision.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic org.apache.cassandra.db.ConsistencyLevel.$SWITCH_TABLE$org$apache$cassandra$config$ReadRepairDecision:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
Signature: Ljava/lang/Enum<Lorg/apache/cassandra/db/ConsistencyLevel;>;
SourceFile: "ConsistencyLevel.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map