public class org.apache.cassandra.thrift.ThriftConversion
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.ThriftConversion
super_class: java.lang.Object
{
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$thrift$ConsistencyLevel;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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/thrift/ThriftConversion;
public static org.apache.cassandra.db.ConsistencyLevel fromThrift(org.apache.cassandra.thrift.ConsistencyLevel);
descriptor: (Lorg/apache/cassandra/thrift/ConsistencyLevel;)Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.thrift.ThriftConversion.$SWITCH_TABLE$org$apache$cassandra$thrift$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 1 - 11
1: 2
2: 5
3: 7
4: 8
5: 6
6: 1
7: 3
8: 4
9: 9
10: 10
11: 11
default: 12
}
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.ANY:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.TWO:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
4: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.THREE:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
5: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
6: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.ALL:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
7: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
8: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
9: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
10: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
11: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/db/ConsistencyLevel;
areturn
12: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cl Lorg/apache/cassandra/thrift/ConsistencyLevel;
MethodParameters:
Name Flags
cl
public static org.apache.cassandra.thrift.ConsistencyLevel toThrift(org.apache.cassandra.db.ConsistencyLevel);
descriptor: (Lorg/apache/cassandra/db/ConsistencyLevel;)Lorg/apache/cassandra/thrift/ConsistencyLevel;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.thrift.ThriftConversion.$SWITCH_TABLE$org$apache$cassandra$db$ConsistencyLevel:()[I
aload 0
invokevirtual org.apache.cassandra.db.ConsistencyLevel.ordinal:()I
iaload
tableswitch { // 1 - 11
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: 10
11: 11
default: 12
}
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.ANY:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.ONE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.TWO:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
4: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.THREE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
5: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
6: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.ALL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
7: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
8: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
9: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
10: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
11: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.thrift.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
areturn
12: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cl Lorg/apache/cassandra/db/ConsistencyLevel;
MethodParameters:
Name Flags
cl
public static java.lang.RuntimeException rethrow(org.apache.cassandra.exceptions.RequestExecutionException);
descriptor: (Lorg/apache/cassandra/exceptions/RequestExecutionException;)Ljava/lang/RuntimeException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.apache.cassandra.exceptions.RequestFailureException
ifeq 2
1: aload 0
checkcast org.apache.cassandra.exceptions.RequestFailureException
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThrift:(Lorg/apache/cassandra/exceptions/RequestFailureException;)Lorg/apache/cassandra/thrift/TimedOutException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.cassandra.exceptions.RequestTimeoutException
ifeq 4
3: aload 0
checkcast org.apache.cassandra.exceptions.RequestTimeoutException
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThrift:(Lorg/apache/cassandra/exceptions/RequestTimeoutException;)Lorg/apache/cassandra/thrift/TimedOutException;
athrow
4: StackMap locals:
StackMap stack:
new org.apache.cassandra.thrift.UnavailableException
dup
invokespecial org.apache.cassandra.thrift.UnavailableException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 e Lorg/apache/cassandra/exceptions/RequestExecutionException;
Exceptions:
throws org.apache.cassandra.thrift.UnavailableException, org.apache.cassandra.thrift.TimedOutException
MethodParameters:
Name Flags
e
public static org.apache.cassandra.thrift.InvalidRequestException toThrift(org.apache.cassandra.exceptions.RequestValidationException);
descriptor: (Lorg/apache/cassandra/exceptions/RequestValidationException;)Lorg/apache/cassandra/thrift/InvalidRequestException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.thrift.InvalidRequestException
dup
aload 0
invokevirtual org.apache.cassandra.exceptions.RequestValidationException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.InvalidRequestException.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/apache/cassandra/exceptions/RequestValidationException;
MethodParameters:
Name Flags
e
public static org.apache.cassandra.thrift.UnavailableException toThrift(org.apache.cassandra.exceptions.UnavailableException);
descriptor: (Lorg/apache/cassandra/exceptions/UnavailableException;)Lorg/apache/cassandra/thrift/UnavailableException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.thrift.UnavailableException
dup
invokespecial org.apache.cassandra.thrift.UnavailableException.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/apache/cassandra/exceptions/UnavailableException;
MethodParameters:
Name Flags
e
public static org.apache.cassandra.thrift.AuthenticationException toThrift(org.apache.cassandra.exceptions.AuthenticationException);
descriptor: (Lorg/apache/cassandra/exceptions/AuthenticationException;)Lorg/apache/cassandra/thrift/AuthenticationException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.thrift.AuthenticationException
dup
aload 0
invokevirtual org.apache.cassandra.exceptions.AuthenticationException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.AuthenticationException.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/apache/cassandra/exceptions/AuthenticationException;
MethodParameters:
Name Flags
e
public static org.apache.cassandra.thrift.TimedOutException toThrift(org.apache.cassandra.exceptions.RequestTimeoutException);
descriptor: (Lorg/apache/cassandra/exceptions/RequestTimeoutException;)Lorg/apache/cassandra/thrift/TimedOutException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new org.apache.cassandra.thrift.TimedOutException
dup
invokespecial org.apache.cassandra.thrift.TimedOutException.<init>:()V
astore 1
start local 1 1: aload 0
instanceof org.apache.cassandra.exceptions.WriteTimeoutException
ifeq 10
2: aload 0
checkcast org.apache.cassandra.exceptions.WriteTimeoutException
astore 2
start local 2 3: aload 1
aload 2
getfield org.apache.cassandra.exceptions.WriteTimeoutException.received:I
invokevirtual org.apache.cassandra.thrift.TimedOutException.setAcknowledged_by:(I)Lorg/apache/cassandra/thrift/TimedOutException;
pop
4: aload 2
getfield org.apache.cassandra.exceptions.WriteTimeoutException.writeType:Lorg/apache/cassandra/db/WriteType;
getstatic org.apache.cassandra.db.WriteType.BATCH_LOG:Lorg/apache/cassandra/db/WriteType;
if_acmpne 6
5: aload 1
iconst_0
invokevirtual org.apache.cassandra.thrift.TimedOutException.setAcknowledged_by_batchlog:(Z)Lorg/apache/cassandra/thrift/TimedOutException;
pop
goto 10
6: StackMap locals: org.apache.cassandra.thrift.TimedOutException org.apache.cassandra.exceptions.WriteTimeoutException
StackMap stack:
aload 2
getfield org.apache.cassandra.exceptions.WriteTimeoutException.writeType:Lorg/apache/cassandra/db/WriteType;
getstatic org.apache.cassandra.db.WriteType.BATCH:Lorg/apache/cassandra/db/WriteType;
if_acmpne 8
7: aload 1
iconst_1
invokevirtual org.apache.cassandra.thrift.TimedOutException.setAcknowledged_by_batchlog:(Z)Lorg/apache/cassandra/thrift/TimedOutException;
pop
goto 10
8: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.exceptions.WriteTimeoutException.writeType:Lorg/apache/cassandra/db/WriteType;
getstatic org.apache.cassandra.db.WriteType.CAS:Lorg/apache/cassandra/db/WriteType;
if_acmpne 10
9: aload 1
iconst_1
invokevirtual org.apache.cassandra.thrift.TimedOutException.setPaxos_in_progress:(Z)Lorg/apache/cassandra/thrift/TimedOutException;
pop
end local 2 10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 e Lorg/apache/cassandra/exceptions/RequestTimeoutException;
1 11 1 toe Lorg/apache/cassandra/thrift/TimedOutException;
3 10 2 wte Lorg/apache/cassandra/exceptions/WriteTimeoutException;
MethodParameters:
Name Flags
e
public static org.apache.cassandra.thrift.TimedOutException toThrift(org.apache.cassandra.exceptions.RequestFailureException);
descriptor: (Lorg/apache/cassandra/exceptions/RequestFailureException;)Lorg/apache/cassandra/thrift/TimedOutException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.thrift.TimedOutException
dup
invokespecial org.apache.cassandra.thrift.TimedOutException.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Lorg/apache/cassandra/exceptions/RequestFailureException;
MethodParameters:
Name Flags
e
public static org.apache.cassandra.db.filter.RowFilter rowFilterFromThrift(org.apache.cassandra.config.CFMetaData, java.util.List<org.apache.cassandra.thrift.IndexExpression>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;)Lorg/apache/cassandra/db/filter/RowFilter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.filter.RowFilter.NONE:Lorg/apache/cassandra/db/filter/RowFilter;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.size:()I
invokestatic org.apache.cassandra.db.filter.RowFilter.forThrift:(I)Lorg/apache/cassandra/db/filter/RowFilter;
astore 2
start local 2 3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: org.apache.cassandra.config.CFMetaData java.util.List org.apache.cassandra.db.filter.RowFilter top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.IndexExpression
astore 3
start local 3 5: aload 2
aload 0
aload 3
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
aload 3
getfield org.apache.cassandra.thrift.IndexExpression.op:Lorg/apache/cassandra/thrift/IndexOperator;
invokevirtual org.apache.cassandra.thrift.IndexOperator.name:()Ljava/lang/String;
invokestatic org.apache.cassandra.cql3.Operator.valueOf:(Ljava/lang/String;)Lorg/apache/cassandra/cql3/Operator;
aload 3
getfield org.apache.cassandra.thrift.IndexExpression.value:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.filter.RowFilter.addThriftExpression:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/cql3/Operator;Ljava/nio/ByteBuffer;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 8 1 exprs Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;
3 8 2 converted Lorg/apache/cassandra/db/filter/RowFilter;
5 6 3 expr Lorg/apache/cassandra/thrift/IndexExpression;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;)Lorg/apache/cassandra/db/filter/RowFilter;
MethodParameters:
Name Flags
metadata
exprs
public static org.apache.cassandra.schema.KeyspaceMetadata fromThrift(org.apache.cassandra.thrift.KsDef, org.apache.cassandra.config.CFMetaData[]);
descriptor: (Lorg/apache/cassandra/thrift/KsDef;[Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.thrift.KsDef.strategy_class:Ljava/lang/String;
invokestatic org.apache.cassandra.locator.AbstractReplicationStrategy.getClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ldc Lorg/apache/cassandra/locator/LocalStrategy;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 3
2: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Unable to use given strategy class: LocalStrategy is reserved for internal use."
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.Class
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 4: aload 0
getfield org.apache.cassandra.thrift.KsDef.strategy_options:Ljava/util/Map;
ifnull 6
5: aload 3
aload 0
getfield org.apache.cassandra.thrift.KsDef.strategy_options:Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
6: StackMap locals: java.util.Map
StackMap stack:
aload 3
ldc "class"
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
getfield org.apache.cassandra.thrift.KsDef.name:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.KsDef.durable_writes:Z
aload 3
invokestatic org.apache.cassandra.schema.KeyspaceParams.create:(ZLjava/util/Map;)Lorg/apache/cassandra/schema/KeyspaceParams;
aload 1
invokestatic org.apache.cassandra.schema.Tables.of:([Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/schema/Tables;
invokestatic org.apache.cassandra.schema.KeyspaceMetadata.create:(Ljava/lang/String;Lorg/apache/cassandra/schema/KeyspaceParams;Lorg/apache/cassandra/schema/Tables;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 ksd Lorg/apache/cassandra/thrift/KsDef;
0 8 1 cfDefs [Lorg/apache/cassandra/config/CFMetaData;
1 8 2 cls Ljava/lang/Class<+Lorg/apache/cassandra/locator/AbstractReplicationStrategy;>;
4 8 3 replicationMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws org.apache.cassandra.exceptions.ConfigurationException
MethodParameters:
Name Flags
ksd
cfDefs
public static org.apache.cassandra.thrift.KsDef toThrift(org.apache.cassandra.schema.KeyspaceMetadata);
descriptor: (Lorg/apache/cassandra/schema/KeyspaceMetadata;)Lorg/apache/cassandra/thrift/KsDef;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.schema.KeyspaceMetadata.tables:Lorg/apache/cassandra/schema/Tables;
invokevirtual org.apache.cassandra.schema.Tables.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.schema.KeyspaceMetadata java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.CFMetaData
astore 2
start local 2 3: aload 2
invokevirtual org.apache.cassandra.config.CFMetaData.isThriftCompatible:()Z
ifeq 5
4: aload 1
aload 2
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThrift:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/thrift/CfDef;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: new org.apache.cassandra.thrift.KsDef
dup
aload 0
getfield org.apache.cassandra.schema.KeyspaceMetadata.name:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.schema.KeyspaceMetadata.params:Lorg/apache/cassandra/schema/KeyspaceParams;
getfield org.apache.cassandra.schema.KeyspaceParams.replication:Lorg/apache/cassandra/schema/ReplicationParams;
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 1
invokespecial org.apache.cassandra.thrift.KsDef.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
astore 2
start local 2 7: aload 2
aload 0
getfield org.apache.cassandra.schema.KeyspaceMetadata.params:Lorg/apache/cassandra/schema/KeyspaceParams;
getfield org.apache.cassandra.schema.KeyspaceParams.replication:Lorg/apache/cassandra/schema/ReplicationParams;
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
invokevirtual org.apache.cassandra.thrift.KsDef.setStrategy_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/KsDef;
pop
8: aload 2
aload 0
getfield org.apache.cassandra.schema.KeyspaceMetadata.params:Lorg/apache/cassandra/schema/KeyspaceParams;
getfield org.apache.cassandra.schema.KeyspaceParams.durableWrites:Z
invokevirtual org.apache.cassandra.thrift.KsDef.setDurable_writes:(Z)Lorg/apache/cassandra/thrift/KsDef;
pop
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 ksm Lorg/apache/cassandra/schema/KeyspaceMetadata;
1 10 1 cfDefs Ljava/util/List<Lorg/apache/cassandra/thrift/CfDef;>;
3 5 2 cfm Lorg/apache/cassandra/config/CFMetaData;
7 10 2 ksdef Lorg/apache/cassandra/thrift/KsDef;
MethodParameters:
Name Flags
ksm
public static org.apache.cassandra.config.CFMetaData fromThrift(org.apache.cassandra.thrift.CfDef);
descriptor: (Lorg/apache/cassandra/thrift/CfDef;)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.CfDef.column_metadata:Ljava/util/List;
ifnull 1
aload 0
getfield org.apache.cassandra.thrift.CfDef.column_metadata:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: aload 0
iconst_1
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
iload 1
invokestatic org.apache.cassandra.thrift.ThriftConversion.internalFromThrift:(Lorg/apache/cassandra/thrift/CfDef;ZLjava/util/Collection;Z)Lorg/apache/cassandra/config/CFMetaData;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cf_def Lorg/apache/cassandra/thrift/CfDef;
3 4 1 isDense Z
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.ConfigurationException
MethodParameters:
Name Flags
cf_def
public static org.apache.cassandra.config.CFMetaData fromThriftForUpdate(org.apache.cassandra.thrift.CfDef, org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/thrift/CfDef;Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.allColumns:()Ljava/util/Collection;
aload 1
invokevirtual org.apache.cassandra.config.CFMetaData.isDense:()Z
invokestatic org.apache.cassandra.thrift.ThriftConversion.internalFromThrift:(Lorg/apache/cassandra/thrift/CfDef;ZLjava/util/Collection;Z)Lorg/apache/cassandra/config/CFMetaData;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cf_def Lorg/apache/cassandra/thrift/CfDef;
0 1 1 toUpdate Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.ConfigurationException
MethodParameters:
Name Flags
cf_def
toUpdate
private static boolean isSuper(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
109801339: 1
1312628413: 2
default: 5
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 1
ldc "super"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 5
StackMap locals:
StackMap stack:
2: aload 1
ldc "standard"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
goto 5
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
5: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "Invalid column type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 thriftColumnType Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
thriftColumnType
private static org.apache.cassandra.config.CFMetaData internalFromThrift(org.apache.cassandra.thrift.CfDef, boolean, java.util.Collection<org.apache.cassandra.config.ColumnDefinition>, boolean);
descriptor: (Lorg/apache/cassandra/thrift/CfDef;ZLjava/util/Collection;Z)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=10, locals=16, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokestatic org.apache.cassandra.thrift.ThriftConversion.applyImplicitDefaults:(Lorg/apache/cassandra/thrift/CfDef;)V
1: aload 0
getfield org.apache.cassandra.thrift.CfDef.column_type:Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.ThriftConversion.isSuper:(Ljava/lang/String;)Z
istore 4
start local 4 2: aload 0
getfield org.apache.cassandra.thrift.CfDef.comparator_type:Ljava/lang/String;
invokestatic org.apache.cassandra.db.marshal.TypeParser.parse:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 5
start local 5 3: iload 4
ifeq 6
4: aload 0
getfield org.apache.cassandra.thrift.CfDef.subcomparator_type:Ljava/lang/String;
ifnonnull 5
getstatic org.apache.cassandra.db.marshal.BytesType.instance:Lorg/apache/cassandra/db/marshal/BytesType;
goto 7
StackMap locals: int org.apache.cassandra.db.marshal.AbstractType
StackMap stack:
5: aload 0
getfield org.apache.cassandra.thrift.CfDef.subcomparator_type:Ljava/lang/String;
invokestatic org.apache.cassandra.db.marshal.TypeParser.parse:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
goto 7
6: StackMap locals:
StackMap stack:
aconst_null
7: StackMap locals:
StackMap stack: org.apache.cassandra.db.marshal.AbstractType
astore 6
start local 6 8: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetKey_validation_class:()Z
ifeq 9
aload 0
getfield org.apache.cassandra.thrift.CfDef.key_validation_class:Ljava/lang/String;
invokestatic org.apache.cassandra.db.marshal.TypeParser.parse:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
goto 10
StackMap locals: org.apache.cassandra.db.marshal.AbstractType
StackMap stack:
9: getstatic org.apache.cassandra.db.marshal.BytesType.instance:Lorg/apache/cassandra/db/marshal/BytesType;
StackMap locals:
StackMap stack: org.apache.cassandra.db.marshal.AbstractType
10: astore 7
start local 7 11: aload 0
getfield org.apache.cassandra.thrift.CfDef.default_validation_class:Ljava/lang/String;
invokestatic org.apache.cassandra.db.marshal.TypeParser.parse:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 8
start local 8 12: aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
aload 5
aload 6
aload 0
getfield org.apache.cassandra.thrift.CfDef.column_metadata:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftConversion.fromThrift:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Ljava/util/List;)Ljava/util/List;
astore 9
start local 9 13: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetKey_alias:()Z
ifeq 14
aload 7
ifnull 14
aload 7
instanceof org.apache.cassandra.db.marshal.CompositeType
ifne 14
iconst_1
goto 15
StackMap locals: org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List
StackMap stack:
14: iconst_0
StackMap locals:
StackMap stack: int
15: istore 10
start local 10 16: iload 10
ifeq 18
17: aload 9
aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
getstatic org.apache.cassandra.db.marshal.UTF8Type.instance:Lorg/apache/cassandra/db/marshal/UTF8Type;
aload 0
getfield org.apache.cassandra.thrift.CfDef.key_alias:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.UTF8Type.getString:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aload 7
iconst_0
invokestatic org.apache.cassandra.config.ColumnDefinition.partitionKeyDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
18: StackMap locals: int
StackMap stack:
aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 12
goto 25
StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int top java.util.Iterator
StackMap stack:
19: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
astore 11
start local 11 20: aload 11
iconst_0
iload 4
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPartOfCellName:(ZZ)Z
ifeq 22
21: goto 25
22: StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int org.apache.cassandra.config.ColumnDefinition java.util.Iterator
StackMap stack:
aload 11
getfield org.apache.cassandra.config.ColumnDefinition.kind:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.PARTITION_KEY:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
if_acmpne 24
iload 10
ifeq 24
23: goto 25
24: StackMap locals:
StackMap stack:
aload 9
aload 11
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 11 25: StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int top java.util.Iterator
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
26: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
invokevirtual org.apache.cassandra.config.Schema.getId:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/UUID;
astore 11
start local 11 27: aload 11
ifnonnull 29
28: invokestatic org.apache.cassandra.utils.UUIDGen.getTimeUUID:()Ljava/util/UUID;
astore 11
29: StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int java.util.UUID
StackMap stack:
iload 4
ifne 30
aload 5
instanceof org.apache.cassandra.db.marshal.CompositeType
ifeq 30
iconst_1
goto 31
StackMap locals:
StackMap stack:
30: iconst_0
StackMap locals:
StackMap stack: int
31: istore 12
start local 12 32: aload 8
instanceof org.apache.cassandra.db.marshal.CounterColumnType
istore 13
start local 13 33: iload 1
ifeq 44
34: aload 9
35: aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
36: aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
37: iload 10
ifeq 38
aconst_null
goto 39
StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int java.util.UUID int int
StackMap stack: java.util.List java.lang.String java.lang.String
38: aload 7
39: StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int int org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List int java.util.UUID int int
StackMap stack: java.util.List java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType
aload 5
40: aload 6
41: aload 8
42: iload 3
43: invokestatic org.apache.cassandra.thrift.ThriftConversion.addDefaultCQLMetadata:(Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Z)V
44: StackMap locals:
StackMap stack:
iconst_0
istore 14
start local 14 45: aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
46: aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
47: aload 11
48: iload 3
49: iload 12
50: iload 4
51: iload 13
52: iload 14
53: aload 9
54: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getPartitioner:()Lorg/apache/cassandra/dht/IPartitioner;
55: invokestatic org.apache.cassandra.config.CFMetaData.create:(Ljava/lang/String;Ljava/lang/String;Ljava/util/UUID;ZZZZZLjava/util/List;Lorg/apache/cassandra/dht/IPartitioner;)Lorg/apache/cassandra/config/CFMetaData;
astore 15
start local 15 56: aload 15
aload 15
57: aload 0
getfield org.apache.cassandra.thrift.CfDef.keyspace:Ljava/lang/String;
58: aload 0
getfield org.apache.cassandra.thrift.CfDef.name:Ljava/lang/String;
59: aload 5
60: aload 6
61: aload 0
getfield org.apache.cassandra.thrift.CfDef.column_metadata:Ljava/util/List;
62: invokestatic org.apache.cassandra.thrift.ThriftConversion.indexDefsFromThrift:(Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Ljava/util/List;)Lorg/apache/cassandra/schema/Indexes;
invokevirtual org.apache.cassandra.config.CFMetaData.indexes:(Lorg/apache/cassandra/schema/Indexes;)Lorg/apache/cassandra/config/CFMetaData;
pop
63: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetGc_grace_seconds:()Z
ifeq 65
64: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.gc_grace_seconds:I
invokevirtual org.apache.cassandra.config.CFMetaData.gcGraceSeconds:(I)Lorg/apache/cassandra/config/CFMetaData;
pop
65: StackMap locals: int org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 15
aload 0
invokestatic org.apache.cassandra.thrift.ThriftConversion.compactionParamsFromThrift:(Lorg/apache/cassandra/thrift/CfDef;)Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.config.CFMetaData.compaction:(Lorg/apache/cassandra/schema/CompactionParams;)Lorg/apache/cassandra/config/CFMetaData;
pop
66: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetBloom_filter_fp_chance:()Z
ifeq 68
67: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.bloom_filter_fp_chance:D
invokevirtual org.apache.cassandra.config.CFMetaData.bloomFilterFpChance:(D)Lorg/apache/cassandra/config/CFMetaData;
pop
68: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMemtable_flush_period_in_ms:()Z
ifeq 70
69: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.memtable_flush_period_in_ms:I
invokevirtual org.apache.cassandra.config.CFMetaData.memtableFlushPeriod:(I)Lorg/apache/cassandra/config/CFMetaData;
pop
70: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCaching:()Z
ifne 71
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCells_per_row_to_cache:()Z
ifeq 72
71: StackMap locals:
StackMap stack:
aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.caching:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.CfDef.cells_per_row_to_cache:Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.ThriftConversion.cachingFromThrift:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/schema/CachingParams;
invokevirtual org.apache.cassandra.config.CFMetaData.caching:(Lorg/apache/cassandra/schema/CachingParams;)Lorg/apache/cassandra/config/CFMetaData;
pop
72: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetRead_repair_chance:()Z
ifeq 74
73: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.read_repair_chance:D
invokevirtual org.apache.cassandra.config.CFMetaData.readRepairChance:(D)Lorg/apache/cassandra/config/CFMetaData;
pop
74: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetDefault_time_to_live:()Z
ifeq 76
75: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.default_time_to_live:I
invokevirtual org.apache.cassandra.config.CFMetaData.defaultTimeToLive:(I)Lorg/apache/cassandra/config/CFMetaData;
pop
76: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetDclocal_read_repair_chance:()Z
ifeq 78
77: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.dclocal_read_repair_chance:D
invokevirtual org.apache.cassandra.config.CFMetaData.dcLocalReadRepairChance:(D)Lorg/apache/cassandra/config/CFMetaData;
pop
78: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMin_index_interval:()Z
ifeq 80
79: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.min_index_interval:I
invokevirtual org.apache.cassandra.config.CFMetaData.minIndexInterval:(I)Lorg/apache/cassandra/config/CFMetaData;
pop
80: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMax_index_interval:()Z
ifeq 82
81: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.max_index_interval:I
invokevirtual org.apache.cassandra.config.CFMetaData.maxIndexInterval:(I)Lorg/apache/cassandra/config/CFMetaData;
pop
82: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetSpeculative_retry:()Z
ifeq 84
83: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.speculative_retry:Ljava/lang/String;
invokestatic org.apache.cassandra.schema.SpeculativeRetryParam.fromString:(Ljava/lang/String;)Lorg/apache/cassandra/schema/SpeculativeRetryParam;
invokevirtual org.apache.cassandra.config.CFMetaData.speculativeRetry:(Lorg/apache/cassandra/schema/SpeculativeRetryParam;)Lorg/apache/cassandra/config/CFMetaData;
pop
84: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetTriggers:()Z
ifeq 86
85: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.triggers:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftConversion.triggerDefinitionsFromThrift:(Ljava/util/List;)Lorg/apache/cassandra/schema/Triggers;
invokevirtual org.apache.cassandra.config.CFMetaData.triggers:(Lorg/apache/cassandra/schema/Triggers;)Lorg/apache/cassandra/config/CFMetaData;
pop
86: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetComment:()Z
ifeq 88
87: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.comment:Ljava/lang/String;
invokevirtual org.apache.cassandra.config.CFMetaData.comment:(Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
pop
88: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCompression_options:()Z
ifeq 90
89: aload 15
aload 0
getfield org.apache.cassandra.thrift.CfDef.compression_options:Ljava/util/Map;
invokestatic org.apache.cassandra.thrift.ThriftConversion.compressionParametersFromThrift:(Ljava/util/Map;)Lorg/apache/cassandra/schema/CompressionParams;
invokevirtual org.apache.cassandra.config.CFMetaData.compression:(Lorg/apache/cassandra/schema/CompressionParams;)Lorg/apache/cassandra/config/CFMetaData;
pop
90: StackMap locals:
StackMap stack:
aload 15
91: areturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 92: StackMap locals: org.apache.cassandra.thrift.CfDef int java.util.Collection int
StackMap stack: java.lang.RuntimeException
astore 4
start local 4 93: new org.apache.cassandra.exceptions.ConfigurationException
dup
aload 4
invokevirtual java.lang.RuntimeException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 94 0 cf_def Lorg/apache/cassandra/thrift/CfDef;
0 94 1 isCreation Z
0 94 2 previousCQLMetadata Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;
0 94 3 isDense Z
2 92 4 isSuper Z
3 92 5 rawComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
8 92 6 subComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
11 92 7 keyValidator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
12 92 8 defaultValidator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
13 92 9 defs Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition;>;
16 92 10 hasKeyAlias Z
20 25 11 def Lorg/apache/cassandra/config/ColumnDefinition;
27 92 11 cfId Ljava/util/UUID;
32 92 12 isCompound Z
33 92 13 isCounter Z
45 92 14 isView Z
56 92 15 newCFMD Lorg/apache/cassandra/config/CFMetaData;
93 94 4 e Ljava/lang/RuntimeException;
Exception table:
from to target type
1 91 92 Class org.apache.cassandra.exceptions.SyntaxException
1 91 92 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.ConfigurationException
Signature: (Lorg/apache/cassandra/thrift/CfDef;ZLjava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;Z)Lorg/apache/cassandra/config/CFMetaData;
MethodParameters:
Name Flags
cf_def
isCreation
previousCQLMetadata
isDense
private static org.apache.cassandra.schema.CompactionParams compactionParamsFromThrift(org.apache.cassandra.thrift.CfDef);
descriptor: (Lorg/apache/cassandra/thrift/CfDef;)Lorg/apache/cassandra/schema/CompactionParams;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.CfDef.compaction_strategy:Ljava/lang/String;
invokestatic org.apache.cassandra.config.CFMetaData.createCompactionStrategy:(Ljava/lang/String;)Ljava/lang/Class;
1: astore 1
start local 1 2: new java.util.HashMap
dup
aload 0
getfield org.apache.cassandra.thrift.CfDef.compaction_strategy_options:Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 2
start local 2 3: aload 0
getfield org.apache.cassandra.thrift.CfDef.min_compaction_threshold:I
istore 3
start local 3 4: aload 0
getfield org.apache.cassandra.thrift.CfDef.max_compaction_threshold:I
istore 4
start local 4 5: aload 1
invokestatic org.apache.cassandra.schema.CompactionParams.supportsThresholdParams:(Ljava/lang/Class;)Z
ifeq 8
6: aload 2
getstatic org.apache.cassandra.schema.CompactionParams$Option.MIN_THRESHOLD:Lorg/apache/cassandra/schema/CompactionParams$Option;
invokevirtual org.apache.cassandra.schema.CompactionParams$Option.toString:()Ljava/lang/String;
iload 3
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 2
getstatic org.apache.cassandra.schema.CompactionParams$Option.MAX_THRESHOLD:Lorg/apache/cassandra/schema/CompactionParams$Option;
invokevirtual org.apache.cassandra.schema.CompactionParams$Option.toString:()Ljava/lang/String;
iload 4
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals: org.apache.cassandra.thrift.CfDef java.lang.Class java.util.Map int int
StackMap stack:
aload 1
aload 2
invokestatic org.apache.cassandra.schema.CompactionParams.create:(Ljava/lang/Class;Ljava/util/Map;)Lorg/apache/cassandra/schema/CompactionParams;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 cf_def Lorg/apache/cassandra/thrift/CfDef;
2 9 1 klass Ljava/lang/Class<+Lorg/apache/cassandra/db/compaction/AbstractCompactionStrategy;>;
3 9 2 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 9 3 minThreshold I
5 9 4 maxThreshold I
MethodParameters:
Name Flags
cf_def
private static org.apache.cassandra.schema.CompressionParams compressionParametersFromThrift(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Lorg/apache/cassandra/schema/CompressionParams;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.schema.CompressionParams.fromMap:(Ljava/util/Map;)Lorg/apache/cassandra/schema/CompressionParams;
astore 1
start local 1 1: aload 1
invokevirtual org.apache.cassandra.schema.CompressionParams.validate:()V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 compression_options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 3 1 compressionParameter Lorg/apache/cassandra/schema/CompressionParams;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/CompressionParams;
MethodParameters:
Name Flags
compression_options
private static void addDefaultCQLMetadata(java.util.Collection<org.apache.cassandra.config.ColumnDefinition>, java.lang.String, java.lang.String, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, );
descriptor: (Ljava/util/Collection;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=11, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
invokestatic org.apache.cassandra.db.CompactTables.defaultNameGenerator:(Ljava/lang/Iterable;)Lorg/apache/cassandra/db/CompactTables$DefaultNames;
astore 8
start local 8 1: aload 3
ifnull 11
2: aload 3
instanceof org.apache.cassandra.db.marshal.CompositeType
ifeq 10
3: aload 3
checkcast org.apache.cassandra.db.marshal.CompositeType
getfield org.apache.cassandra.db.marshal.CompositeType.types:Ljava/util/List;
astore 9
start local 9 4: iconst_0
istore 10
start local 10 5: goto 8
6: StackMap locals: org.apache.cassandra.db.CompactTables$DefaultNames java.util.List int
StackMap stack:
aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultPartitionKeyName:()Ljava/lang/String;
aload 9
iload 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.marshal.AbstractType
iload 10
invokestatic org.apache.cassandra.config.ColumnDefinition.partitionKeyDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
7: iinc 10 1
StackMap locals:
StackMap stack:
8: iload 10
aload 9
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 10 end local 9 9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultPartitionKeyName:()Ljava/lang/String;
aload 3
iconst_0
invokestatic org.apache.cassandra.config.ColumnDefinition.partitionKeyDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals:
StackMap stack:
aload 5
ifnull 18
12: aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultClusteringName:()Ljava/lang/String;
aload 4
iconst_0
invokestatic org.apache.cassandra.config.ColumnDefinition.clusteringDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
13: aload 0
aload 1
aload 2
getstatic org.apache.cassandra.cql3.SuperColumnCompatibility.SUPER_COLUMN_MAP_COLUMN_STR:Ljava/lang/String;
aload 5
aload 6
iconst_1
invokestatic org.apache.cassandra.db.marshal.MapType.getInstance:(Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Z)Lorg/apache/cassandra/db/marshal/MapType;
invokestatic org.apache.cassandra.config.ColumnDefinition.regularDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
14: iload 7
ifeq 28
15: aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultClusteringName:()Ljava/lang/String;
aload 5
iconst_1
invokestatic org.apache.cassandra.config.ColumnDefinition.clusteringDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
16: aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultCompactValueName:()Ljava/lang/String;
aload 6
invokestatic org.apache.cassandra.config.ColumnDefinition.regularDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
17: goto 28
18: StackMap locals:
StackMap stack:
aload 4
instanceof org.apache.cassandra.db.marshal.CompositeType
ifeq 20
19: aload 4
checkcast org.apache.cassandra.db.marshal.CompositeType
getfield org.apache.cassandra.db.marshal.CompositeType.types:Ljava/util/List;
goto 21
20: StackMap locals:
StackMap stack:
aload 4
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
21: StackMap locals:
StackMap stack: java.util.List
astore 9
start local 9 22: iconst_0
istore 10
start local 10 23: goto 26
24: StackMap locals: java.util.List int
StackMap stack:
aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultClusteringName:()Ljava/lang/String;
aload 9
iload 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.marshal.AbstractType
iload 10
invokestatic org.apache.cassandra.config.ColumnDefinition.clusteringDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;I)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
25: iinc 10 1
StackMap locals:
StackMap stack:
26: iload 10
aload 9
invokeinterface java.util.List.size:()I
if_icmplt 24
end local 10 27: aload 0
aload 1
aload 2
aload 8
invokevirtual org.apache.cassandra.db.CompactTables$DefaultNames.defaultCompactValueName:()Ljava/lang/String;
aload 6
invokestatic org.apache.cassandra.config.ColumnDefinition.regularDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 9 28: StackMap locals:
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 defs Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;
0 29 1 ks Ljava/lang/String;
0 29 2 cf Ljava/lang/String;
0 29 3 keyValidator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 29 4 comparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 29 5 subComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 29 6 defaultValidator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 29 7 isDense Z
1 29 8 names Lorg/apache/cassandra/db/CompactTables$DefaultNames;
4 9 9 subTypes Ljava/util/List<Lorg/apache/cassandra/db/marshal/AbstractType<*>;>;
5 9 10 i I
22 28 9 subTypes Ljava/util/List<Lorg/apache/cassandra/db/marshal/AbstractType<*>;>;
23 27 10 i I
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Z)V
MethodParameters:
Name Flags
defs
ks
cf
keyValidator
comparator
subComparator
defaultValidator
isDense
private static void applyImplicitDefaults(org.apache.cassandra.thrift.CfDef);
descriptor: (Lorg/apache/cassandra/thrift/CfDef;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetComment:()Z
ifne 2
1: aload 0
ldc ""
invokevirtual org.apache.cassandra.thrift.CfDef.setComment:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMin_compaction_threshold:()Z
ifne 4
3: aload 0
iconst_4
invokevirtual org.apache.cassandra.thrift.CfDef.setMin_compaction_threshold:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMax_compaction_threshold:()Z
ifne 6
5: aload 0
bipush 32
invokevirtual org.apache.cassandra.thrift.CfDef.setMax_compaction_threshold:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCompaction_strategy:()Z
ifne 8
7: aload 0
getstatic org.apache.cassandra.schema.CompactionParams.DEFAULT:Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.schema.CompactionParams.klass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompaction_strategy:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCompaction_strategy_options:()Z
ifne 10
9: aload 0
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompaction_strategy_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/CfDef;
pop
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetCompression_options:()Z
ifne 12
11: aload 0
ldc "sstable_compression"
getstatic org.apache.cassandra.schema.CompressionParams.DEFAULT:Lorg/apache/cassandra/schema/CompressionParams;
invokevirtual org.apache.cassandra.schema.CompressionParams.klass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompression_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/CfDef;
pop
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetDefault_time_to_live:()Z
ifne 14
13: aload 0
iconst_0
invokevirtual org.apache.cassandra.thrift.CfDef.setDefault_time_to_live:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetDclocal_read_repair_chance:()Z
ifne 16
15: aload 0
ldc 0.1
invokevirtual org.apache.cassandra.thrift.CfDef.setDclocal_read_repair_chance:(D)Lorg/apache/cassandra/thrift/CfDef;
pop
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMin_index_interval:()Z
ifne 20
17: aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetIndex_interval:()Z
ifeq 19
18: aload 0
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.getIndex_interval:()I
invokevirtual org.apache.cassandra.thrift.CfDef.setMin_index_interval:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
goto 20
19: StackMap locals:
StackMap stack:
aload 0
sipush 128
invokevirtual org.apache.cassandra.thrift.CfDef.setMin_index_interval:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
20: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.CfDef.isSetMax_index_interval:()Z
ifne 22
21: aload 0
aload 0
getfield org.apache.cassandra.thrift.CfDef.min_index_interval:I
sipush 2048
invokestatic java.lang.Math.max:(II)I
invokevirtual org.apache.cassandra.thrift.CfDef.setMax_index_interval:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
22: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 cf_def Lorg/apache/cassandra/thrift/CfDef;
MethodParameters:
Name Flags
cf_def
public static org.apache.cassandra.thrift.CfDef toThrift(org.apache.cassandra.config.CFMetaData);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/thrift/CfDef;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new org.apache.cassandra.thrift.CfDef
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.CfDef.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifeq 2
ldc "Super"
goto 3
StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.CfDef
StackMap stack: org.apache.cassandra.thrift.CfDef
2: ldc "Standard"
StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.CfDef
StackMap stack: org.apache.cassandra.thrift.CfDef java.lang.String
3: invokevirtual org.apache.cassandra.thrift.CfDef.setColumn_type:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
4: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifeq 8
5: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.comparator:Lorg/apache/cassandra/db/ClusteringComparator;
iconst_0
invokevirtual org.apache.cassandra.db.ClusteringComparator.subtype:(I)Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setComparator_type:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
6: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.thriftColumnNameType:()Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setSubcomparator_type:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic org.apache.cassandra.db.LegacyLayout.makeLegacyComparator:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setComparator_type:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
9: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.comment:Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setComment:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
10: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.readRepairChance:D
invokevirtual org.apache.cassandra.thrift.CfDef.setRead_repair_chance:(D)Lorg/apache/cassandra/thrift/CfDef;
pop
11: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.dcLocalReadRepairChance:D
invokevirtual org.apache.cassandra.thrift.CfDef.setDclocal_read_repair_chance:(D)Lorg/apache/cassandra/thrift/CfDef;
pop
12: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.gcGraceSeconds:I
invokevirtual org.apache.cassandra.thrift.CfDef.setGc_grace_seconds:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
13: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.makeLegacyDefaultValidator:()Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setDefault_validation_class:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
14: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.getKeyValidator:()Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setKey_validation_class:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
15: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.compaction:Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.schema.CompactionParams.minCompactionThreshold:()I
invokevirtual org.apache.cassandra.thrift.CfDef.setMin_compaction_threshold:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
16: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.compaction:Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.schema.CompactionParams.maxCompactionThreshold:()I
invokevirtual org.apache.cassandra.thrift.CfDef.setMax_compaction_threshold:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
17: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.partitionKeyColumns:()Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 19
18: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.partitionKeyColumns:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.CfDef.setKey_alias:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/CfDef;
pop
19: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.allColumns:()Ljava/util/Collection;
invokestatic org.apache.cassandra.thrift.ThriftConversion.columnDefinitionsToThrift:(Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection;)Ljava/util/List;
invokevirtual org.apache.cassandra.thrift.CfDef.setColumn_metadata:(Ljava/util/List;)Lorg/apache/cassandra/thrift/CfDef;
pop
20: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.compaction:Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.schema.CompactionParams.klass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompaction_strategy:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
21: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.compaction:Lorg/apache/cassandra/schema/CompactionParams;
invokevirtual org.apache.cassandra.schema.CompactionParams.options:()Ljava/util/Map;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompaction_strategy_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/CfDef;
pop
22: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.compression:Lorg/apache/cassandra/schema/CompressionParams;
invokestatic org.apache.cassandra.thrift.ThriftConversion.compressionParametersToThrift:(Lorg/apache/cassandra/schema/CompressionParams;)Ljava/util/Map;
invokevirtual org.apache.cassandra.thrift.CfDef.setCompression_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/CfDef;
pop
23: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.bloomFilterFpChance:D
invokevirtual org.apache.cassandra.thrift.CfDef.setBloom_filter_fp_chance:(D)Lorg/apache/cassandra/thrift/CfDef;
pop
24: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.minIndexInterval:I
invokevirtual org.apache.cassandra.thrift.CfDef.setMin_index_interval:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
25: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.maxIndexInterval:I
invokevirtual org.apache.cassandra.thrift.CfDef.setMax_index_interval:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
26: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.memtableFlushPeriodInMs:I
invokevirtual org.apache.cassandra.thrift.CfDef.setMemtable_flush_period_in_ms:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
27: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.caching:Lorg/apache/cassandra/schema/CachingParams;
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThrift:(Lorg/apache/cassandra/schema/CachingParams;)Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setCaching:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
28: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.caching:Lorg/apache/cassandra/schema/CachingParams;
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThriftCellsPerRow:(Lorg/apache/cassandra/schema/CachingParams;)Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setCells_per_row_to_cache:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
29: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.defaultTimeToLive:I
invokevirtual org.apache.cassandra.thrift.CfDef.setDefault_time_to_live:(I)Lorg/apache/cassandra/thrift/CfDef;
pop
30: aload 1
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.speculativeRetry:Lorg/apache/cassandra/schema/SpeculativeRetryParam;
invokevirtual org.apache.cassandra.schema.SpeculativeRetryParam.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.CfDef.setSpeculative_retry:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/CfDef;
pop
31: aload 1
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.getTriggers:()Lorg/apache/cassandra/schema/Triggers;
invokestatic org.apache.cassandra.thrift.ThriftConversion.triggerDefinitionsToThrift:(Lorg/apache/cassandra/schema/Triggers;)Ljava/util/List;
invokevirtual org.apache.cassandra.thrift.CfDef.setTriggers:(Ljava/util/List;)Lorg/apache/cassandra/thrift/CfDef;
pop
32: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 cfm Lorg/apache/cassandra/config/CFMetaData;
1 33 1 def Lorg/apache/cassandra/thrift/CfDef;
MethodParameters:
Name Flags
cfm
public static org.apache.cassandra.config.ColumnDefinition fromThrift(java.lang.String, java.lang.String, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.thrift.ColumnDef);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/thrift/ColumnDef;)Lorg/apache/cassandra/config/ColumnDefinition;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 5
start local 5 3: aload 3
ifnonnull 4
aload 2
goto 5
StackMap locals: int
StackMap stack:
4: aload 3
StackMap locals:
StackMap stack: org.apache.cassandra.db.marshal.AbstractType
5: astore 6
start local 6 6: aload 6
aload 4
getfield org.apache.cassandra.thrift.ColumnDef.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
7: goto 10
8: StackMap locals: java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.thrift.ColumnDef int org.apache.cassandra.db.marshal.AbstractType
StackMap stack: org.apache.cassandra.serializers.MarshalException
pop
9: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Column name %s is not valid for comparator %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
getfield org.apache.cassandra.thrift.ColumnDef.name:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
dup
iconst_1
aload 6
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
10: StackMap locals:
StackMap stack:
iload 5
ifeq 11
getstatic org.apache.cassandra.config.ColumnDefinition$Kind.REGULAR:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
goto 12
StackMap locals:
StackMap stack:
11: getstatic org.apache.cassandra.config.ColumnDefinition$Kind.STATIC:Lorg/apache/cassandra/config/ColumnDefinition$Kind;
StackMap locals:
StackMap stack: org.apache.cassandra.config.ColumnDefinition$Kind
12: astore 7
start local 7 13: new org.apache.cassandra.config.ColumnDefinition
dup
aload 0
14: aload 1
15: aload 4
getfield org.apache.cassandra.thrift.ColumnDef.name:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.clone:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
aload 6
invokestatic org.apache.cassandra.cql3.ColumnIdentifier.getInterned:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/cql3/ColumnIdentifier;
16: aload 4
getfield org.apache.cassandra.thrift.ColumnDef.validation_class:Ljava/lang/String;
invokestatic org.apache.cassandra.db.marshal.TypeParser.parse:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
17: iconst_m1
18: aload 7
19: invokespecial org.apache.cassandra.config.ColumnDefinition.<init>:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/db/marshal/AbstractType;ILorg/apache/cassandra/config/ColumnDefinition$Kind;)V
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 ksName Ljava/lang/String;
0 20 1 cfName Ljava/lang/String;
0 20 2 thriftComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 20 3 thriftSubcomparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 20 4 thriftColumnDef Lorg/apache/cassandra/thrift/ColumnDef;
3 20 5 isSuper Z
6 20 6 comparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
13 20 7 kind Lorg/apache/cassandra/config/ColumnDefinition$Kind;
Exception table:
from to target type
6 7 8 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException, org.apache.cassandra.exceptions.ConfigurationException
Signature: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/thrift/ColumnDef;)Lorg/apache/cassandra/config/ColumnDefinition;
MethodParameters:
Name Flags
ksName
cfName
thriftComparator
thriftSubcomparator
thriftColumnDef
private static java.util.List<org.apache.cassandra.config.ColumnDefinition> fromThrift(java.lang.String, java.lang.String, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, java.util.List<org.apache.cassandra.thrift.ColumnDef>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Ljava/util/List;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
ifnonnull 2
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 4
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 3: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 6
StackMap locals: java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List java.util.List top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.ColumnDef
astore 6
start local 6 5: aload 5
aload 0
aload 1
aload 2
aload 3
aload 6
invokestatic org.apache.cassandra.thrift.ThriftConversion.fromThrift:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/thrift/ColumnDef;)Lorg/apache/cassandra/config/ColumnDefinition;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 6: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 5
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 8 0 ksName Ljava/lang/String;
0 8 1 cfName Ljava/lang/String;
0 8 2 thriftComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 8 3 thriftSubcomparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 8 4 thriftDefs Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;
3 8 5 defs Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition;>;
5 6 6 thriftColumnDef Lorg/apache/cassandra/thrift/ColumnDef;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException, org.apache.cassandra.exceptions.ConfigurationException
Signature: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;)Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition;>;
MethodParameters:
Name Flags
ksName
cfName
thriftComparator
thriftSubcomparator
thriftDefs
private static org.apache.cassandra.schema.Indexes indexDefsFromThrift(org.apache.cassandra.config.CFMetaData, java.lang.String, java.lang.String, org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.db.marshal.AbstractType<?>, java.util.List<org.apache.cassandra.thrift.ColumnDef>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Ljava/util/List;)Lorg/apache/cassandra/schema/Indexes;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=14, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 5
ifnonnull 2
1: invokestatic org.apache.cassandra.schema.Indexes.none:()Lorg/apache/cassandra/schema/Indexes;
areturn
2: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 6
start local 6 3: invokestatic org.apache.cassandra.schema.Indexes.builder:()Lorg/apache/cassandra/schema/Indexes$Builder;
astore 7
start local 7 4: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 19
StackMap locals: org.apache.cassandra.config.CFMetaData java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List java.util.Set org.apache.cassandra.schema.Indexes$Builder top java.util.Iterator
StackMap stack:
5: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.ColumnDef
astore 8
start local 8 6: aload 8
invokevirtual org.apache.cassandra.thrift.ColumnDef.isSetIndex_type:()Z
ifeq 19
7: aload 1
aload 2
aload 3
aload 4
aload 8
invokestatic org.apache.cassandra.thrift.ThriftConversion.fromThrift:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/db/marshal/AbstractType;Lorg/apache/cassandra/thrift/ColumnDef;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 10
start local 10 8: aload 8
invokevirtual org.apache.cassandra.thrift.ColumnDef.getIndex_name:()Ljava/lang/String;
astore 11
start local 11 9: aload 11
invokestatic com.google.common.base.Strings.isNullOrEmpty:(Ljava/lang/String;)Z
ifeq 11
10: aload 1
aload 2
aload 10
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
invokevirtual org.apache.cassandra.cql3.ColumnIdentifier.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.schema.Indexes.getAvailableIndexName:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 11
11: StackMap locals: org.apache.cassandra.config.CFMetaData java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List java.util.Set org.apache.cassandra.schema.Indexes$Builder org.apache.cassandra.thrift.ColumnDef java.util.Iterator org.apache.cassandra.config.ColumnDefinition java.lang.String
StackMap stack:
aload 6
aload 11
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 13
12: new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
ldc "Duplicate index name "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 11
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
13: StackMap locals:
StackMap stack:
aload 6
aload 11
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
14: aload 8
invokevirtual org.apache.cassandra.thrift.ColumnDef.getIndex_options:()Ljava/util/Map;
astore 12
start local 12 15: aload 12
ifnull 17
aload 12
ldc "target"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 17
16: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Reserved index option 'target' cannot be used"
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: java.util.Map
StackMap stack:
aload 8
getfield org.apache.cassandra.thrift.ColumnDef.index_type:Lorg/apache/cassandra/thrift/IndexType;
invokevirtual org.apache.cassandra.thrift.IndexType.name:()Ljava/lang/String;
invokestatic org.apache.cassandra.schema.IndexMetadata$Kind.valueOf:(Ljava/lang/String;)Lorg/apache/cassandra/schema/IndexMetadata$Kind;
astore 13
start local 13 18: aload 7
aload 0
aload 10
aload 11
aload 13
aload 12
invokestatic org.apache.cassandra.schema.IndexMetadata.fromLegacyMetadata:(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;
invokevirtual org.apache.cassandra.schema.Indexes$Builder.add:(Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/schema/Indexes$Builder;
pop
end local 13 end local 12 end local 11 end local 10 end local 8 19: StackMap locals: org.apache.cassandra.config.CFMetaData java.lang.String java.lang.String org.apache.cassandra.db.marshal.AbstractType org.apache.cassandra.db.marshal.AbstractType java.util.List java.util.Set org.apache.cassandra.schema.Indexes$Builder top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
20: aload 7
invokevirtual org.apache.cassandra.schema.Indexes$Builder.build:()Lorg/apache/cassandra/schema/Indexes;
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 cfm Lorg/apache/cassandra/config/CFMetaData;
0 21 1 ksName Ljava/lang/String;
0 21 2 cfName Ljava/lang/String;
0 21 3 thriftComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 21 4 thriftSubComparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
0 21 5 thriftDefs Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;
3 21 6 indexNames Ljava/util/Set<Ljava/lang/String;>;
4 21 7 indexes Lorg/apache/cassandra/schema/Indexes$Builder;
6 19 8 def Lorg/apache/cassandra/thrift/ColumnDef;
8 19 10 column Lorg/apache/cassandra/config/ColumnDefinition;
9 19 11 indexName Ljava/lang/String;
15 19 12 indexOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
18 19 13 kind Lorg/apache/cassandra/schema/IndexMetadata$Kind;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/db/marshal/AbstractType<*>;Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;)Lorg/apache/cassandra/schema/Indexes;
MethodParameters:
Name Flags
cfm
ksName
cfName
thriftComparator
thriftSubComparator
thriftDefs
public static org.apache.cassandra.thrift.ColumnDef toThrift(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.config.ColumnDefinition);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/thrift/ColumnDef;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.thrift.ColumnDef
dup
invokespecial org.apache.cassandra.thrift.ColumnDef.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
getfield org.apache.cassandra.cql3.ColumnIdentifier.bytes:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.clone:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnDef.setName:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnDef;
pop
2: aload 2
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.ColumnDef.setValidation_class:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/ColumnDef;
pop
3: aconst_null
astore 3
start local 3 4: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.getIndexes:()Lorg/apache/cassandra/schema/Indexes;
invokevirtual org.apache.cassandra.schema.Indexes.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.thrift.ColumnDef org.apache.cassandra.schema.IndexMetadata top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.schema.IndexMetadata
astore 4
start local 4 6: aload 0
aload 4
invokestatic org.apache.cassandra.index.TargetParser.parse:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/schema/IndexMetadata;)Lorg/apache/cassandra/utils/Pair;
astore 6
start local 6 7: aload 6
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
aload 1
invokevirtual org.apache.cassandra.config.ColumnDefinition.equals:(Ljava/lang/Object;)Z
ifeq 11
8: aload 3
ifnull 10
9: aload 2
areturn
10: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.thrift.ColumnDef org.apache.cassandra.schema.IndexMetadata org.apache.cassandra.schema.IndexMetadata java.util.Iterator org.apache.cassandra.utils.Pair
StackMap stack:
aload 4
astore 3
end local 6 end local 4 11: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.thrift.ColumnDef org.apache.cassandra.schema.IndexMetadata top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: aload 3
ifnull 22
13: aload 2
aload 3
getfield org.apache.cassandra.schema.IndexMetadata.kind:Lorg/apache/cassandra/schema/IndexMetadata$Kind;
invokevirtual org.apache.cassandra.schema.IndexMetadata$Kind.name:()Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.IndexType.valueOf:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/IndexType;
invokevirtual org.apache.cassandra.thrift.ColumnDef.setIndex_type:(Lorg/apache/cassandra/thrift/IndexType;)Lorg/apache/cassandra/thrift/ColumnDef;
pop
14: aload 2
aload 3
getfield org.apache.cassandra.schema.IndexMetadata.name:Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.ColumnDef.setIndex_name:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/ColumnDef;
pop
15: aload 3
getfield org.apache.cassandra.schema.IndexMetadata.options:Ljava/util/Map;
16: 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/thrift/ThriftConversion.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
17: invokestatic com.google.common.collect.Maps.filterKeys:(Ljava/util/Map;Lcom/google/common/base/Predicate;)Ljava/util/Map;
astore 4
start local 4 18: aload 2
aload 4
invokeinterface java.util.Map.isEmpty:()Z
ifeq 20
19: aconst_null
goto 21
20: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.thrift.ColumnDef org.apache.cassandra.schema.IndexMetadata java.util.Map
StackMap stack: org.apache.cassandra.thrift.ColumnDef
aload 4
invokestatic com.google.common.collect.Maps.newHashMap:(Ljava/util/Map;)Ljava/util/HashMap;
21: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.config.ColumnDefinition org.apache.cassandra.thrift.ColumnDef org.apache.cassandra.schema.IndexMetadata java.util.Map
StackMap stack: org.apache.cassandra.thrift.ColumnDef java.util.HashMap
invokevirtual org.apache.cassandra.thrift.ColumnDef.setIndex_options:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/ColumnDef;
pop
end local 4 22: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 cfMetaData Lorg/apache/cassandra/config/CFMetaData;
0 23 1 column Lorg/apache/cassandra/config/ColumnDefinition;
1 23 2 cd Lorg/apache/cassandra/thrift/ColumnDef;
4 23 3 matchedIndex Lorg/apache/cassandra/schema/IndexMetadata;
6 11 4 index Lorg/apache/cassandra/schema/IndexMetadata;
7 11 6 target Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/statements/IndexTarget$Type;>;
18 22 4 filteredOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
cfMetaData
column
private static java.util.List<org.apache.cassandra.thrift.ColumnDef> columnDefinitionsToThrift(org.apache.cassandra.config.CFMetaData, java.util.Collection<org.apache.cassandra.config.ColumnDefinition>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.Collection.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.config.CFMetaData java.util.Collection java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
astore 3
start local 3 3: aload 3
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isCQLTable:()Z
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPartOfCellName:(ZZ)Z
ifeq 5
4: aload 2
aload 0
aload 3
invokestatic org.apache.cassandra.thrift.ThriftConversion.toThrift:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/thrift/ColumnDef;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 7 1 columns Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;
1 7 2 thriftDefs Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;
3 5 3 def Lorg/apache/cassandra/config/ColumnDefinition;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;)Ljava/util/List<Lorg/apache/cassandra/thrift/ColumnDef;>;
MethodParameters:
Name Flags
metadata
columns
private static org.apache.cassandra.schema.Triggers triggerDefinitionsFromThrift(java.util.List<org.apache.cassandra.thrift.TriggerDef>);
descriptor: (Ljava/util/List;)Lorg/apache/cassandra/schema/Triggers;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: invokestatic org.apache.cassandra.schema.Triggers.builder:()Lorg/apache/cassandra/schema/Triggers$Builder;
astore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.util.List org.apache.cassandra.schema.Triggers$Builder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.TriggerDef
astore 2
start local 2 3: aload 1
new org.apache.cassandra.schema.TriggerMetadata
dup
aload 2
invokevirtual org.apache.cassandra.thrift.TriggerDef.getName:()Ljava/lang/String;
aload 2
invokevirtual org.apache.cassandra.thrift.TriggerDef.getOptions:()Ljava/util/Map;
ldc "class"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial org.apache.cassandra.schema.TriggerMetadata.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual org.apache.cassandra.schema.Triggers$Builder.add:(Lorg/apache/cassandra/schema/TriggerMetadata;)Lorg/apache/cassandra/schema/Triggers$Builder;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokevirtual org.apache.cassandra.schema.Triggers$Builder.build:()Lorg/apache/cassandra/schema/Triggers;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 thriftDefs Ljava/util/List<Lorg/apache/cassandra/thrift/TriggerDef;>;
1 6 1 triggers Lorg/apache/cassandra/schema/Triggers$Builder;
3 4 2 thriftDef Lorg/apache/cassandra/thrift/TriggerDef;
Signature: (Ljava/util/List<Lorg/apache/cassandra/thrift/TriggerDef;>;)Lorg/apache/cassandra/schema/Triggers;
MethodParameters:
Name Flags
thriftDefs
private static java.util.List<org.apache.cassandra.thrift.TriggerDef> triggerDefinitionsToThrift(org.apache.cassandra.schema.Triggers);
descriptor: (Lorg/apache/cassandra/schema/Triggers;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual org.apache.cassandra.schema.Triggers.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.apache.cassandra.schema.Triggers java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.schema.TriggerMetadata
astore 2
start local 2 3: new org.apache.cassandra.thrift.TriggerDef
dup
invokespecial org.apache.cassandra.thrift.TriggerDef.<init>:()V
astore 4
start local 4 4: aload 4
aload 2
getfield org.apache.cassandra.schema.TriggerMetadata.name:Ljava/lang/String;
invokevirtual org.apache.cassandra.thrift.TriggerDef.setName:(Ljava/lang/String;)Lorg/apache/cassandra/thrift/TriggerDef;
pop
5: aload 4
ldc "class"
aload 2
getfield org.apache.cassandra.schema.TriggerMetadata.classOption:Ljava/lang/String;
invokestatic java.util.Collections.singletonMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
invokevirtual org.apache.cassandra.thrift.TriggerDef.setOptions:(Ljava/util/Map;)Lorg/apache/cassandra/thrift/TriggerDef;
pop
6: aload 1
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 triggers Lorg/apache/cassandra/schema/Triggers;
1 9 1 thriftDefs Ljava/util/List<Lorg/apache/cassandra/thrift/TriggerDef;>;
3 7 2 def Lorg/apache/cassandra/schema/TriggerMetadata;
4 7 4 td Lorg/apache/cassandra/thrift/TriggerDef;
Signature: (Lorg/apache/cassandra/schema/Triggers;)Ljava/util/List<Lorg/apache/cassandra/thrift/TriggerDef;>;
MethodParameters:
Name Flags
triggers
public static java.util.Map<java.lang.String, java.lang.String> compressionParametersToThrift(org.apache.cassandra.schema.CompressionParams);
descriptor: (Lorg/apache/cassandra/schema/CompressionParams;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.schema.CompressionParams.isEnabled:()Z
ifne 2
1: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
2: StackMap locals:
StackMap stack:
new java.util.HashMap
dup
aload 0
invokevirtual org.apache.cassandra.schema.CompressionParams.getOtherOptions:()Lcom/google/common/collect/ImmutableMap;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 1
start local 1 3: aload 0
invokevirtual org.apache.cassandra.schema.CompressionParams.getSstableCompressor:()Lorg/apache/cassandra/io/compress/ICompressor;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
start local 2 4: aload 1
ldc "sstable_compression"
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 1
ldc "chunk_length_kb"
aload 0
invokevirtual org.apache.cassandra.schema.CompressionParams.chunkLengthInKB:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 parameters Lorg/apache/cassandra/schema/CompressionParams;
3 7 1 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 7 2 klass Ljava/lang/Class<+Lorg/apache/cassandra/io/compress/ICompressor;>;
Signature: (Lorg/apache/cassandra/schema/CompressionParams;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
parameters
private static java.lang.String toThrift(org.apache.cassandra.schema.CachingParams);
descriptor: (Lorg/apache/cassandra/schema/CachingParams;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.cacheRows:()Z
ifeq 2
aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.cacheKeys:()Z
ifeq 2
1: ldc "ALL"
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.cacheRows:()Z
ifeq 4
3: ldc "ROWS_ONLY"
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.cacheKeys:()Z
ifeq 6
5: ldc "KEYS_ONLY"
areturn
6: StackMap locals:
StackMap stack:
ldc "NONE"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 caching Lorg/apache/cassandra/schema/CachingParams;
MethodParameters:
Name Flags
caching
private static org.apache.cassandra.schema.CachingParams cachingFromTrhfit(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/schema/CachingParams;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
dup
astore 1
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 4
64897: 1
2402104: 2
430478930: 3
1724531479: 4
default: 9
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 1
ldc "ALL"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
goto 9
StackMap locals:
StackMap stack:
2: aload 1
ldc "NONE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 9
StackMap locals:
StackMap stack:
3: aload 1
ldc "ROWS_ONLY"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
goto 9
StackMap locals:
StackMap stack:
4: aload 1
ldc "KEYS_ONLY"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 9
5: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.schema.CachingParams.CACHE_EVERYTHING:Lorg/apache/cassandra/schema/CachingParams;
areturn
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.schema.CachingParams
dup
iconst_0
ldc 2147483647
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
areturn
7: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.schema.CachingParams.CACHE_KEYS:Lorg/apache/cassandra/schema/CachingParams;
areturn
8: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.schema.CachingParams.CACHE_NOTHING:Lorg/apache/cassandra/schema/CachingParams;
areturn
9: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "Invalid value %s for caching parameter"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 caching Ljava/lang/String;
MethodParameters:
Name Flags
caching
private static java.lang.String toThriftCellsPerRow(org.apache.cassandra.schema.CachingParams);
descriptor: (Lorg/apache/cassandra/schema/CachingParams;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.cacheAllRows:()Z
ifeq 2
1: ldc "ALL"
goto 3
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 caching Lorg/apache/cassandra/schema/CachingParams;
MethodParameters:
Name Flags
caching
private static int fromThriftCellsPerRow(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "ALL"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: ldc 2147483647
goto 3
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
3: StackMap locals:
StackMap stack: int
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 value Ljava/lang/String;
MethodParameters:
Name Flags
value
public static org.apache.cassandra.schema.CachingParams cachingFromThrift(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/schema/CachingParams;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 0
ifnull 6
3: aload 0
invokestatic org.apache.cassandra.thrift.ThriftConversion.cachingFromTrhfit:(Ljava/lang/String;)Lorg/apache/cassandra/schema/CachingParams;
astore 4
start local 4 4: aload 4
invokevirtual org.apache.cassandra.schema.CachingParams.cacheKeys:()Z
istore 2
5: aload 4
invokevirtual org.apache.cassandra.schema.CachingParams.rowsPerPartitionToCache:()I
istore 3
end local 4 6: StackMap locals: int int
StackMap stack:
aload 1
ifnull 8
iload 3
ifle 8
7: aload 1
invokestatic org.apache.cassandra.thrift.ThriftConversion.fromThriftCellsPerRow:(Ljava/lang/String;)I
istore 3
8: StackMap locals:
StackMap stack:
new org.apache.cassandra.schema.CachingParams
dup
iload 2
iload 3
invokespecial org.apache.cassandra.schema.CachingParams.<init>:(ZI)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 caching Ljava/lang/String;
0 9 1 cellsPerRow Ljava/lang/String;
1 9 2 cacheKeys Z
2 9 3 rowsPerPartitionToCache I
4 6 4 parsed Lorg/apache/cassandra/schema/CachingParams;
MethodParameters:
Name Flags
caching
cellsPerRow
static int[] $SWITCH_TABLE$org$apache$cassandra$thrift$ConsistencyLevel();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.thrift.ThriftConversion.$SWITCH_TABLE$org$apache$cassandra$thrift$ConsistencyLevel:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.thrift.ConsistencyLevel.values:()[Lorg/apache/cassandra/thrift/ConsistencyLevel;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.ALL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iconst_5
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.thrift.ConsistencyLevel.ANY:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
bipush 6
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.EACH_QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iconst_4
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.LOCAL_ONE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.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.thrift.ConsistencyLevel.LOCAL_QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iconst_3
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.LOCAL_SERIAL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.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.thrift.ConsistencyLevel.ONE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iconst_1
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.QUORUM:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
iconst_2
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.SERIAL:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.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.thrift.ConsistencyLevel.THREE:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
bipush 8
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic org.apache.cassandra.thrift.ConsistencyLevel.TWO:Lorg/apache/cassandra/thrift/ConsistencyLevel;
invokevirtual org.apache.cassandra.thrift.ConsistencyLevel.ordinal:()I
bipush 7
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.thrift.ThriftConversion.$SWITCH_TABLE$org$apache$cassandra$thrift$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$db$ConsistencyLevel();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.thrift.ThriftConversion.$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.thrift.ThriftConversion.$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
private static boolean lambda$0(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: ldc "target"
aload 0
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 s Ljava/lang/String;
}
SourceFile: "ThriftConversion.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Kind = org.apache.cassandra.config.ColumnDefinition$Kind of org.apache.cassandra.config.ColumnDefinition
public final Type = org.apache.cassandra.cql3.statements.IndexTarget$Type of org.apache.cassandra.cql3.statements.IndexTarget
public DefaultNames = org.apache.cassandra.db.CompactTables$DefaultNames of org.apache.cassandra.db.CompactTables
public final Option = org.apache.cassandra.schema.CompactionParams$Option of org.apache.cassandra.schema.CompactionParams
public final Kind = org.apache.cassandra.schema.IndexMetadata$Kind of org.apache.cassandra.schema.IndexMetadata
public final Builder = org.apache.cassandra.schema.Indexes$Builder of org.apache.cassandra.schema.Indexes
public final Builder = org.apache.cassandra.schema.Triggers$Builder of org.apache.cassandra.schema.Triggers