public class org.apache.cassandra.thrift.ThriftValidation
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.ThriftValidation
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/thrift/ThriftValidation;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.thrift.ThriftValidation.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/thrift/ThriftValidation;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.ThriftValidation.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/thrift/ThriftValidation;
public static void validateKey(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 2
1: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Key may not be empty"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ldc 65535
if_icmple 7
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "Key length of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc " is longer than maximum of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc 65535
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.getKeyValidator:()Lorg/apache/cassandra/db/marshal/AbstractType;
aload 1
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
8: goto 11
9: StackMap locals:
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 2
start local 2 10: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 2
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 12 1 key Ljava/nio/ByteBuffer;
10 11 2 e Lorg/apache/cassandra/serializers/MarshalException;
Exception table:
from to target type
7 8 9 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
key
public static void validateKeyspace(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
invokevirtual org.apache.cassandra.config.Schema.getKeyspaces:()Ljava/util/Set;
aload 0
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 2
1: new org.apache.cassandra.db.KeyspaceNotDefinedException
dup
new java.lang.StringBuilder
dup
ldc "Keyspace "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.db.KeyspaceNotDefinedException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 keyspaceName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.db.KeyspaceNotDefinedException
MethodParameters:
Name Flags
keyspaceName
public static org.apache.cassandra.config.CFMetaData validateColumnFamily(java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 3
start local 3 1: iload 2
ifeq 4
2: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ifne 6
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for non commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ifeq 6
5: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 keyspaceName Ljava/lang/String;
0 7 1 cfName Ljava/lang/String;
0 7 2 isCommutativeOp Z
1 7 3 metadata Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
cfName
isCommutativeOp
public static org.apache.cassandra.config.CFMetaData validateColumnFamily(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnFamilyWithCompactMode:(Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/cassandra/config/CFMetaData;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 keyspaceName Ljava/lang/String;
0 1 1 cfName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
cfName
public static org.apache.cassandra.config.CFMetaData validateColumnFamilyWithCompactMode(java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateKeyspace:(Ljava/lang/String;)V
1: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "non-empty table is required"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
aload 1
invokevirtual org.apache.cassandra.config.Schema.getCFMetaData:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 3
start local 3 4: aload 3
ifnonnull 6
5: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "unconfigured table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
6: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isCompactTable:()Z
ifeq 8
iload 2
ifeq 8
7: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.asNonCompact:()Lorg/apache/cassandra/config/CFMetaData;
areturn
8: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 keyspaceName Ljava/lang/String;
0 9 1 cfName Ljava/lang/String;
0 9 2 noCompactMode Z
4 9 3 metadata Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspaceName
cfName
noCompactMode
public static void validateColumnPath(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnPath);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifne 5
1: aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnull 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "supercolumn parameter is invalid for standard CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
ifnonnull 7
4: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "column parameter is not optional for standard CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnonnull 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "supercolumn parameter is not optional for super CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
ifnull 9
8: aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
9: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnull 11
10: aload 0
aconst_null
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 12 1 column_path Lorg/apache/cassandra/thrift/ColumnPath;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column_path
public static void validateColumnParent(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnParent);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifne 3
1: aload 1
getfield org.apache.cassandra.thrift.ColumnParent.super_column:Ljava/nio/ByteBuffer;
ifnull 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "table alone is required for standard CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnParent.super_column:Ljava/nio/ByteBuffer;
ifnull 5
4: aload 0
aconst_null
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.ColumnParent.super_column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 6 1 column_parent Lorg/apache/cassandra/thrift/ColumnParent;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column_parent
static void validateColumnPathOrParent(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnPath);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifeq 5
1: aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnonnull 7
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
ifnull 7
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "A column cannot be specified without specifying a super column for removal on super CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnull 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "supercolumn may not be specified for standard CF "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
ifnull 9
8: aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
9: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
ifnull 11
10: aload 0
aconst_null
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.ColumnPath.super_column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 12 1 column_path_or_parent Lorg/apache/cassandra/thrift/ColumnPath;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column_path_or_parent
private static org.apache.cassandra.db.marshal.AbstractType<?> getThriftColumnNameComparator(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifne 2
1: aload 0
invokestatic org.apache.cassandra.db.LegacyLayout.makeLegacyComparator:(Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/db/marshal/AbstractType;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: 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;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.thriftColumnNameType:()Lorg/apache/cassandra/db/marshal/AbstractType;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 5 1 superColumnName Ljava/nio/ByteBuffer;
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType<*>;
MethodParameters:
Name Flags
metadata
superColumnName
private static void validateColumnNames(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer, java.lang.Iterable<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=10, args_size=3
start local 0 start local 1 start local 2 0: ldc 65535
istore 3
start local 3 1: aload 1
ifnull 8
2: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
if_icmple 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "supercolumn name length must not be greater than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 6
5: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "supercolumn name must not be empty"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifne 8
7: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "supercolumn specified to table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " containing normal columns"
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
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.apache.cassandra.thrift.ThriftValidation.getThriftColumnNameComparator:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 4
start local 4 9: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isThriftCompatible:()Z
ifeq 10
iconst_0
goto 11
StackMap locals: org.apache.cassandra.db.marshal.AbstractType
StackMap stack:
10: iconst_1
StackMap locals:
StackMap stack: int
11: istore 5
start local 5 12: aload 2
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 7
goto 37
StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer java.lang.Iterable int org.apache.cassandra.db.marshal.AbstractType int top java.util.Iterator
StackMap stack:
13: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 6
start local 6 14: aload 6
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
if_icmple 16
15: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "column name length must not be greater than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer java.lang.Iterable int org.apache.cassandra.db.marshal.AbstractType int java.nio.ByteBuffer java.util.Iterator
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 18
17: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "column name must not be empty"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 4
aload 6
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
19: goto 22
20: StackMap locals:
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 8
start local 8 21: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 8
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 8 22: StackMap locals:
StackMap stack:
iload 5
ifeq 37
23: aload 0
aload 6
invokestatic org.apache.cassandra.db.LegacyLayout.decodeCellName:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/LegacyLayout$LegacyCellName;
astore 8
start local 8 24: getstatic org.apache.cassandra.thrift.ThriftValidation.$assertionsDisabled:Z
ifne 25
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.clustering:Lorg/apache/cassandra/db/Clustering;
invokeinterface org.apache.cassandra.db.Clustering.size:()I
aload 0
getfield org.apache.cassandra.config.CFMetaData.comparator:Lorg/apache/cassandra/db/ClusteringComparator;
invokevirtual org.apache.cassandra.db.ClusteringComparator.size:()I
if_icmpeq 25
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
25: StackMap locals: org.apache.cassandra.db.LegacyLayout$LegacyCellName
StackMap stack:
iconst_0
istore 9
start local 9 26: goto 32
27: StackMap locals: int
StackMap stack:
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.clustering:Lorg/apache/cassandra/db/Clustering;
iload 9
invokeinterface org.apache.cassandra.db.Clustering.get:(I)Ljava/nio/ByteBuffer;
ifnonnull 31
28: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Not enough components (found %d but %d expected) for column name since %s is a CQL3 table"
iconst_3
anewarray java.lang.Object
dup
iconst_0
29: iload 9
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.config.CFMetaData.comparator:Lorg/apache/cassandra/db/ClusteringComparator;
invokevirtual org.apache.cassandra.db.ClusteringComparator.size:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
aastore
30: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
32: iload 9
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.clustering:Lorg/apache/cassandra/db/Clustering;
invokeinterface org.apache.cassandra.db.Clustering.size:()I
if_icmplt 27
end local 9 33: aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
ifnull 37
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.collectionElement:Ljava/nio/ByteBuffer;
ifnull 37
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.isCollection:()Z
ifne 37
34: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid collection component, %s is not a collection"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 8 35: StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer java.lang.Iterable int org.apache.cassandra.db.marshal.AbstractType int java.nio.ByteBuffer java.util.Iterator
StackMap stack: java.lang.Exception
astore 8
start local 8 36: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Error validating cell name for CQL3 table %s: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
aastore
dup
iconst_1
aload 8
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 8 end local 6 37: StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer java.lang.Iterable int org.apache.cassandra.db.marshal.AbstractType int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
38: return
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 39 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 39 1 superColumnName Ljava/nio/ByteBuffer;
0 39 2 column_names Ljava/lang/Iterable<Ljava/nio/ByteBuffer;>;
1 39 3 maxNameLength I
9 39 4 comparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
12 39 5 isCQL3Table Z
14 37 6 name Ljava/nio/ByteBuffer;
21 22 8 e Lorg/apache/cassandra/serializers/MarshalException;
24 35 8 cname Lorg/apache/cassandra/db/LegacyLayout$LegacyCellName;
26 33 9 i I
36 37 8 e Ljava/lang/Exception;
Exception table:
from to target type
18 19 20 Class org.apache.cassandra.serializers.MarshalException
23 35 35 Class java.lang.IllegalArgumentException
23 35 35 Class org.apache.cassandra.db.UnknownColumnException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
metadata
superColumnName
column_names
public static void validateColumnNames(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnParent, java.lang.Iterable<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Ljava/lang/Iterable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnParent.super_column:Ljava/nio/ByteBuffer;
aload 2
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 2 1 column_parent Lorg/apache/cassandra/thrift/ColumnParent;
0 2 2 column_names Ljava/lang/Iterable<Ljava/nio/ByteBuffer;>;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Ljava/lang/Iterable<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
metadata
column_parent
column_names
public static void validateRange(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnParent, org.apache.cassandra.thrift.SliceRange);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Lorg/apache/cassandra/thrift/SliceRange;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.thrift.SliceRange.count:I
ifge 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "get_slice requires non-negative count"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
ldc 65535
istore 3
start local 3 3: aload 2
getfield org.apache.cassandra.thrift.SliceRange.start:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
if_icmple 5
4: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "range start length cannot be larger than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.SliceRange.finish:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
if_icmple 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "range finish length cannot be larger than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnParent.super_column:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.thrift.ThriftValidation.getThriftColumnNameComparator:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 4
start local 4 8: aload 4
aload 2
getfield org.apache.cassandra.thrift.SliceRange.start:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
9: aload 4
aload 2
getfield org.apache.cassandra.thrift.SliceRange.finish:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
10: goto 13
11: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.ColumnParent org.apache.cassandra.thrift.SliceRange int org.apache.cassandra.db.marshal.AbstractType
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 5
start local 5 12: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 5
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 5 13: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.thrift.SliceRange.isReversed:()Z
ifeq 14
aload 4
getfield org.apache.cassandra.db.marshal.AbstractType.reverseComparator:Ljava/util/Comparator;
goto 15
StackMap locals:
StackMap stack:
14: aload 4
StackMap locals:
StackMap stack: java.util.Comparator
15: astore 5
start local 5 16: aload 2
getfield org.apache.cassandra.thrift.SliceRange.start:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 20
17: aload 2
getfield org.apache.cassandra.thrift.SliceRange.finish:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 20
18: aload 5
aload 2
getfield org.apache.cassandra.thrift.SliceRange.start:Ljava/nio/ByteBuffer;
aload 2
getfield org.apache.cassandra.thrift.SliceRange.finish:Ljava/nio/ByteBuffer;
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ifle 20
19: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "range finish must come after start in the order of traversal"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals: java.util.Comparator
StackMap stack:
return
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 metadata Lorg/apache/cassandra/config/CFMetaData;
0 21 1 column_parent Lorg/apache/cassandra/thrift/ColumnParent;
0 21 2 range Lorg/apache/cassandra/thrift/SliceRange;
3 21 3 maxNameLength I
8 21 4 comparator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
12 13 5 e Lorg/apache/cassandra/serializers/MarshalException;
16 21 5 orderedComparator Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;
Exception table:
from to target type
8 10 11 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column_parent
range
public static void validateColumnOrSuperColumn(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnOrSuperColumn);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnOrSuperColumn;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.column:Lorg/apache/cassandra/thrift/Column;
ifnonnull 3
iinc 3 1
3: StackMap locals: int int
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.super_column:Lorg/apache/cassandra/thrift/SuperColumn;
ifnonnull 4
iinc 3 1
4: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_column:Lorg/apache/cassandra/thrift/CounterColumn;
ifnonnull 5
iinc 3 1
5: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_super_column:Lorg/apache/cassandra/thrift/CounterSuperColumn;
ifnonnull 6
iinc 3 1
6: StackMap locals:
StackMap stack:
iload 3
iconst_3
if_icmpeq 8
7: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ColumnOrSuperColumn must have one (and only one) of column, super_column, counter and counter_super_column"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.column:Lorg/apache/cassandra/thrift/Column;
ifnull 14
9: iload 2
ifeq 11
10: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.column:Lorg/apache/cassandra/thrift/Column;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateTtl:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Column;)V
12: aload 0
new org.apache.cassandra.thrift.ColumnPath
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.ColumnPath.<init>:(Ljava/lang/String;)V
aconst_null
invokevirtual org.apache.cassandra.thrift.ColumnPath.setSuper_column:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.column:Lorg/apache/cassandra/thrift/Column;
getfield org.apache.cassandra.thrift.Column.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setColumn:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnPath:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
13: aload 0
aconst_null
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.column:Lorg/apache/cassandra/thrift/Column;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnData:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/Column;)V
14: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.super_column:Lorg/apache/cassandra/thrift/SuperColumn;
ifnull 22
15: iload 2
ifeq 17
16: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.super_column:Lorg/apache/cassandra/thrift/SuperColumn;
getfield org.apache.cassandra.thrift.SuperColumn.columns:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 21
StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.ColumnOrSuperColumn int int top java.util.Iterator
StackMap stack:
18: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.Column
astore 4
start local 4 19: aload 0
new org.apache.cassandra.thrift.ColumnPath
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.ColumnPath.<init>:(Ljava/lang/String;)V
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.super_column:Lorg/apache/cassandra/thrift/SuperColumn;
getfield org.apache.cassandra.thrift.SuperColumn.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setSuper_column:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
aload 4
getfield org.apache.cassandra.thrift.Column.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setColumn:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnPath:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
20: aload 0
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.super_column:Lorg/apache/cassandra/thrift/SuperColumn;
getfield org.apache.cassandra.thrift.SuperColumn.name:Ljava/nio/ByteBuffer;
aload 4
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnData:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/Column;)V
end local 4 21: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
22: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.ColumnOrSuperColumn int int
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_column:Lorg/apache/cassandra/thrift/CounterColumn;
ifnull 26
23: iload 2
ifne 25
24: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for non commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 0
new org.apache.cassandra.thrift.ColumnPath
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.ColumnPath.<init>:(Ljava/lang/String;)V
aconst_null
invokevirtual org.apache.cassandra.thrift.ColumnPath.setSuper_column:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_column:Lorg/apache/cassandra/thrift/CounterColumn;
getfield org.apache.cassandra.thrift.CounterColumn.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setColumn:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnPath:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
26: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_super_column:Lorg/apache/cassandra/thrift/CounterSuperColumn;
ifnull 33
27: iload 2
ifne 29
28: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "invalid operation for non commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_super_column:Lorg/apache/cassandra/thrift/CounterSuperColumn;
getfield org.apache.cassandra.thrift.CounterSuperColumn.columns:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 32
StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.ColumnOrSuperColumn int int top java.util.Iterator
StackMap stack:
30: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.CounterColumn
astore 4
start local 4 31: aload 0
new org.apache.cassandra.thrift.ColumnPath
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.ColumnPath.<init>:(Ljava/lang/String;)V
aload 1
getfield org.apache.cassandra.thrift.ColumnOrSuperColumn.counter_super_column:Lorg/apache/cassandra/thrift/CounterSuperColumn;
getfield org.apache.cassandra.thrift.CounterSuperColumn.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setSuper_column:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
aload 4
getfield org.apache.cassandra.thrift.CounterColumn.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.thrift.ColumnPath.setColumn:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnPath;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnPath:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnPath;)V
end local 4 32: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 30
33: StackMap locals: org.apache.cassandra.config.CFMetaData org.apache.cassandra.thrift.ColumnOrSuperColumn int int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 34 1 cosc Lorg/apache/cassandra/thrift/ColumnOrSuperColumn;
1 34 2 isCommutative Z
2 34 3 nulls I
19 21 4 c Lorg/apache/cassandra/thrift/Column;
31 32 4 c Lorg/apache/cassandra/thrift/CounterColumn;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
cosc
private static void validateTtl(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.Column);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Column;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.thrift.Column.isSetTtl:()Z
ifeq 7
1: aload 1
getfield org.apache.cassandra.thrift.Column.ttl:I
ifge 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ttl must be greater or equal to 0"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.Column.ttl:I
ldc 630720000
if_icmple 5
4: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ttl is too large. requested (%d) maximum (%d)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.Column.ttl:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
ldc 630720000
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.apache.cassandra.thrift.Column.ttl:I
iconst_0
invokestatic org.apache.cassandra.db.ExpirationDateOverflowHandling.maybeApplyExpirationDateOverflowPolicy:(Lorg/apache/cassandra/config/CFMetaData;IZ)V
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
getfield org.apache.cassandra.schema.TableParams.defaultTimeToLive:I
iconst_1
invokestatic org.apache.cassandra.db.ExpirationDateOverflowHandling.maybeApplyExpirationDateOverflowPolicy:(Lorg/apache/cassandra/config/CFMetaData;IZ)V
8: getstatic org.apache.cassandra.thrift.ThriftValidation.$assertionsDisabled:Z
ifne 9
aload 1
getfield org.apache.cassandra.thrift.Column.ttl:I
ifeq 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 10 1 column Lorg/apache/cassandra/thrift/Column;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column
public static void validateMutation(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.Mutation);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Mutation;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.thrift.Mutation.column_or_supercolumn:Lorg/apache/cassandra/thrift/ColumnOrSuperColumn;
astore 2
start local 2 1: aload 1
getfield org.apache.cassandra.thrift.Mutation.deletion:Lorg/apache/cassandra/thrift/Deletion;
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: aload 2
ifnonnull 4
iinc 4 1
4: StackMap locals: org.apache.cassandra.thrift.ColumnOrSuperColumn org.apache.cassandra.thrift.Deletion int
StackMap stack:
aload 3
ifnonnull 5
iinc 4 1
5: StackMap locals:
StackMap stack:
iload 4
iconst_1
if_icmpeq 7
6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "mutation must have one and only one of column_or_supercolumn or deletion"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 2
ifnull 10
8: aload 0
aload 2
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnOrSuperColumn:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnOrSuperColumn;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateDeletion:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Deletion;)V
11: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 12 1 mut Lorg/apache/cassandra/thrift/Mutation;
1 12 2 cosc Lorg/apache/cassandra/thrift/ColumnOrSuperColumn;
2 12 3 del Lorg/apache/cassandra/thrift/Deletion;
3 12 4 nulls I
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
mut
public static void validateDeletion(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.Deletion);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Deletion;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.thrift.Deletion.super_column:Ljava/nio/ByteBuffer;
ifnull 2
1: aload 0
aconst_null
iconst_1
anewarray java.nio.ByteBuffer
dup
iconst_0
aload 1
getfield org.apache.cassandra.thrift.Deletion.super_column:Ljava/nio/ByteBuffer;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
2: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.thrift.Deletion.predicate:Lorg/apache/cassandra/thrift/SlicePredicate;
ifnull 4
3: aload 0
aload 1
getfield org.apache.cassandra.thrift.Deletion.super_column:Ljava/nio/ByteBuffer;
aload 1
getfield org.apache.cassandra.thrift.Deletion.predicate:Lorg/apache/cassandra/thrift/SlicePredicate;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateSlicePredicate:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/SlicePredicate;)V
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isSuper:()Z
ifne 7
aload 1
getfield org.apache.cassandra.thrift.Deletion.super_column:Ljava/nio/ByteBuffer;
ifnull 7
5: ldc "Deletion of super columns is not possible on a standard table (KeySpace=%s Table=%s Deletion=%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
aastore
dup
iconst_2
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 6: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 2
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isCounter:()Z
ifeq 10
8: aload 1
invokestatic org.apache.cassandra.utils.FBUtilities.timestampMicros:()J
putfield org.apache.cassandra.thrift.Deletion.timestamp:J
9: goto 12
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.thrift.Deletion.isSetTimestamp:()Z
ifne 12
11: new org.apache.cassandra.exceptions.InvalidRequestException
dup
new java.lang.StringBuilder
dup
ldc "Deletion timestamp is not optional for non commutative table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 13 1 del Lorg/apache/cassandra/thrift/Deletion;
6 7 2 msg Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
del
public static void validateSlicePredicate(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer, org.apache.cassandra.thrift.SlicePredicate);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/SlicePredicate;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
ifnonnull 2
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
ifnonnull 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "A SlicePredicate must be given a list of Columns, a SliceRange, or both"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
ifnull 4
3: aload 0
new org.apache.cassandra.thrift.ColumnParent
dup
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokespecial org.apache.cassandra.thrift.ColumnParent.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.apache.cassandra.thrift.ColumnParent.setSuper_column:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/thrift/ColumnParent;
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateRange:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Lorg/apache/cassandra/thrift/SliceRange;)V
4: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
ifnull 6
5: aload 0
aload 1
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/lang/Iterable;)V
6: StackMap locals:
StackMap stack:
return
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 scName Ljava/nio/ByteBuffer;
0 7 2 predicate Lorg/apache/cassandra/thrift/SlicePredicate;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
scName
predicate
public static void validateColumnData(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer, org.apache.cassandra.thrift.Column);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/Column;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateTtl:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/Column;)V
1: aload 2
invokevirtual org.apache.cassandra.thrift.Column.isSetValue:()Z
ifne 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Column value is required"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.thrift.Column.isSetTimestamp:()Z
ifne 5
4: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Column timestamp is required"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
getfield org.apache.cassandra.thrift.Column.name:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.db.LegacyLayout.decodeCellName:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/LegacyLayout$LegacyCellName;
astore 3
start local 3 6: aload 3
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPrimaryKeyColumn:()Z
ifeq 8
7: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot add primary key column %s to partition update"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: org.apache.cassandra.db.LegacyLayout$LegacyCellName
StackMap stack:
aload 3
getfield org.apache.cassandra.db.LegacyLayout$LegacyCellName.column:Lorg/apache/cassandra/config/ColumnDefinition;
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
aload 2
getfield org.apache.cassandra.thrift.Column.value:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validateCellValue:(Ljava/nio/ByteBuffer;)V
end local 3 9: goto 21
10: StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer org.apache.cassandra.thrift.Column
StackMap stack: org.apache.cassandra.db.UnknownColumnException
astore 3
start local 3 11: new org.apache.cassandra.exceptions.InvalidRequestException
dup
aload 3
invokevirtual org.apache.cassandra.db.UnknownColumnException.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 3 12: StackMap locals:
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 3
start local 3 13: getstatic org.apache.cassandra.thrift.ThriftValidation.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 15
14: getstatic org.apache.cassandra.thrift.ThriftValidation.logger:Lorg/slf4j/Logger;
ldc "rejecting invalid value {}"
aload 2
getfield org.apache.cassandra.thrift.Column.value:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.thrift.ThriftValidation.summarize:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
15: StackMap locals: org.apache.cassandra.serializers.MarshalException
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "(%s) [%s][%s][%s] failed validation"
iconst_4
anewarray java.lang.Object
dup
iconst_0
16: aload 3
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
aastore
dup
iconst_1
17: aload 0
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
aastore
dup
iconst_2
18: aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
aastore
dup
iconst_3
19: aload 0
aload 1
invokestatic org.apache.cassandra.thrift.ThriftValidation.getThriftColumnNameComparator:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType;
aload 2
getfield org.apache.cassandra.thrift.Column.name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.getString:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
20: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 3 21: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 22 1 scName Ljava/nio/ByteBuffer;
0 22 2 column Lorg/apache/cassandra/thrift/Column;
6 9 3 cn Lorg/apache/cassandra/db/LegacyLayout$LegacyCellName;
11 12 3 e Lorg/apache/cassandra/db/UnknownColumnException;
13 21 3 me Lorg/apache/cassandra/serializers/MarshalException;
Exception table:
from to target type
5 9 10 Class org.apache.cassandra.db.UnknownColumnException
5 9 12 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
scName
column
private static java.nio.ByteBuffer summarize(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: sipush 32767
istore 1
start local 1 1: aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 1
if_icmpgt 3
2: aload 0
areturn
3: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iload 1
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 buffer Ljava/nio/ByteBuffer;
1 4 1 MAX I
MethodParameters:
Name Flags
buffer
public static void validatePredicate(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.ColumnParent, org.apache.cassandra.thrift.SlicePredicate);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Lorg/apache/cassandra/thrift/SlicePredicate;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
ifnonnull 2
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
ifnonnull 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "predicate column_names and slice_range may not both be null"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
ifnull 4
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
ifnull 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "predicate column_names and slice_range may not both be present"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.thrift.SlicePredicate.getSlice_range:()Lorg/apache/cassandra/thrift/SliceRange;
ifnull 6
5: aload 0
aload 1
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.slice_range:Lorg/apache/cassandra/thrift/SliceRange;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateRange:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Lorg/apache/cassandra/thrift/SliceRange;)V
goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
getfield org.apache.cassandra.thrift.SlicePredicate.column_names:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnNames:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/ColumnParent;Ljava/lang/Iterable;)V
7: StackMap locals:
StackMap stack:
return
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 column_parent Lorg/apache/cassandra/thrift/ColumnParent;
0 8 2 predicate Lorg/apache/cassandra/thrift/SlicePredicate;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
column_parent
predicate
public static void validateKeyRange(org.apache.cassandra.config.CFMetaData, java.nio.ByteBuffer, org.apache.cassandra.thrift.KeyRange);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/thrift/KeyRange;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_key:Ljava/nio/ByteBuffer;
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_token:Ljava/lang/String;
ifnonnull 3
iconst_1
goto 4
StackMap locals:
StackMap stack: int
3: iconst_0
StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer org.apache.cassandra.thrift.KeyRange
StackMap stack: int int
4: if_icmpeq 10
5: aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_key:Ljava/nio/ByteBuffer;
ifnonnull 6
iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_token:Ljava/lang/String;
ifnonnull 8
iconst_1
goto 9
StackMap locals:
StackMap stack: int
8: iconst_0
StackMap locals: org.apache.cassandra.config.CFMetaData java.nio.ByteBuffer org.apache.cassandra.thrift.KeyRange
StackMap stack: int int
9: if_icmpne 11
10: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "exactly one each of {start key, start token} and {end key, end token} must be specified"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_token:Ljava/lang/String;
ifnull 13
aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_key:Ljava/nio/ByteBuffer;
ifnull 13
12: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "start token + end key is not a supported key range"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.config.CFMetaData.partitioner:Lorg/apache/cassandra/dht/IPartitioner;
astore 3
start local 3 14: aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_key:Ljava/nio/ByteBuffer;
ifnull 21
aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_key:Ljava/nio/ByteBuffer;
ifnull 21
15: aload 3
aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_key:Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.dht.IPartitioner.getToken:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/dht/Token;
astore 4
start local 4 16: aload 3
aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_key:Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.dht.IPartitioner.getToken:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/dht/Token;
astore 5
start local 5 17: aload 4
aload 5
invokevirtual org.apache.cassandra.dht.Token.compareTo:(Ljava/lang/Object;)I
ifle 25
aload 5
invokevirtual org.apache.cassandra.dht.Token.isMinimum:()Z
ifne 25
18: aload 3
invokeinterface org.apache.cassandra.dht.IPartitioner.preservesOrder:()Z
ifeq 20
19: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "start key must sort before (or equal to) finish key in your partitioner!"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals: org.apache.cassandra.dht.IPartitioner org.apache.cassandra.dht.Token org.apache.cassandra.dht.Token
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "start key's token sorts after end key's token. this is not allowed; you probably should not specify end key at all except with an ordered partitioner"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 21: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_key:Ljava/nio/ByteBuffer;
ifnull 25
aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_token:Ljava/lang/String;
ifnull 25
22: aload 3
invokeinterface org.apache.cassandra.dht.IPartitioner.getTokenFactory:()Lorg/apache/cassandra/dht/Token$TokenFactory;
aload 2
getfield org.apache.cassandra.thrift.KeyRange.end_token:Ljava/lang/String;
invokevirtual org.apache.cassandra.dht.Token$TokenFactory.fromString:(Ljava/lang/String;)Lorg/apache/cassandra/dht/Token;
invokevirtual org.apache.cassandra.dht.Token.maxKeyBound:()Lorg/apache/cassandra/dht/Token$KeyBound;
astore 4
start local 4 23: aload 2
getfield org.apache.cassandra.thrift.KeyRange.start_key:Ljava/nio/ByteBuffer;
aload 3
invokestatic org.apache.cassandra.db.PartitionPosition$ForKey.get:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/dht/IPartitioner;)Lorg/apache/cassandra/db/PartitionPosition;
aload 4
invokeinterface org.apache.cassandra.db.PartitionPosition.compareTo:(Ljava/lang/Object;)I
ifle 25
aload 4
invokeinterface org.apache.cassandra.db.PartitionPosition.isMinimum:()Z
ifne 25
24: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Start key's token sorts after end token"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 4 25: StackMap locals:
StackMap stack:
aload 0
aload 2
getfield org.apache.cassandra.thrift.KeyRange.row_filter:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateFilterClauses:(Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;)Z
pop
26: aload 2
getfield org.apache.cassandra.thrift.KeyRange.row_filter:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.isEmpty:(Ljava/util/List;)Z
ifne 28
aload 1
ifnull 28
27: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "super columns are not supported for indexing"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 2
getfield org.apache.cassandra.thrift.KeyRange.count:I
ifgt 30
29: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "maxRows must be positive"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 31 1 superColumn Ljava/nio/ByteBuffer;
0 31 2 range Lorg/apache/cassandra/thrift/KeyRange;
14 31 3 p Lorg/apache/cassandra/dht/IPartitioner;
16 21 4 startToken Lorg/apache/cassandra/dht/Token;
17 21 5 endToken Lorg/apache/cassandra/dht/Token;
23 25 4 stop Lorg/apache/cassandra/db/PartitionPosition;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
superColumn
range
private static boolean isEmpty(java.util.List<org.apache.cassandra.thrift.IndexExpression>);
descriptor: (Ljava/util/List;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokeinterface java.util.List.isEmpty:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 clause Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;
Signature: (Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;)Z
MethodParameters:
Name Flags
clause
public static void validateIndexClauses(org.apache.cassandra.config.CFMetaData, org.apache.cassandra.thrift.IndexClause);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/thrift/IndexClause;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.thrift.IndexClause.expressions:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "index clause list may not be empty"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.apache.cassandra.thrift.IndexClause.expressions:Ljava/util/List;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateFilterClauses:(Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;)Z
ifne 4
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "No indexed columns present in index clause with operator EQ"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 5 1 index_clause Lorg/apache/cassandra/thrift/IndexClause;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
metadata
index_clause
public static boolean validateFilterClauses(org.apache.cassandra.config.CFMetaData, java.util.List<org.apache.cassandra.thrift.IndexExpression>);
descriptor: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.apache.cassandra.thrift.ThriftValidation.isEmpty:(Ljava/util/List;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
aload 0
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/lang/String;)Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.indexManager:Lorg/apache/cassandra/index/SecondaryIndexManager;
astore 2
start local 2 3: aload 0
aconst_null
invokestatic org.apache.cassandra.thrift.ThriftValidation.getThriftColumnNameComparator:(Lorg/apache/cassandra/config/CFMetaData;Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 34
StackMap locals: org.apache.cassandra.config.CFMetaData java.util.List org.apache.cassandra.index.SecondaryIndexManager org.apache.cassandra.db.marshal.AbstractType int top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.IndexExpression
astore 5
start local 5 7: aload 3
aload 5
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
8: goto 15
9: StackMap locals: org.apache.cassandra.config.CFMetaData java.util.List org.apache.cassandra.index.SecondaryIndexManager org.apache.cassandra.db.marshal.AbstractType int org.apache.cassandra.thrift.IndexExpression java.util.Iterator
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 7
start local 7 10: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "[%s]=[%s] failed name validation (%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
11: aload 5
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
dup
iconst_1
12: aload 5
getfield org.apache.cassandra.thrift.IndexExpression.value:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
dup
iconst_2
13: aload 7
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
aastore
14: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 7 15: StackMap locals:
StackMap stack:
aload 5
getfield org.apache.cassandra.thrift.IndexExpression.value:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ldc 65535
if_icmple 17
16: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Index expression values may not be larger than 64K"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
aload 5
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 7
start local 7 18: aload 7
ifnonnull 22
19: aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.isCompactTable:()Z
ifne 21
20: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Unknown column %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aload 5
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.getString:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals: org.apache.cassandra.config.ColumnDefinition
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.config.CFMetaData.compactValueColumn:()Lorg/apache/cassandra/config/ColumnDefinition;
astore 7
22: StackMap locals:
StackMap stack:
aload 7
getfield org.apache.cassandra.config.ColumnDefinition.type:Lorg/apache/cassandra/db/marshal/AbstractType;
aload 5
getfield org.apache.cassandra.thrift.IndexExpression.value:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.validate:(Ljava/nio/ByteBuffer;)V
23: goto 30
24: StackMap locals:
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 8
start local 8 25: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "[%s]=[%s] failed value validation (%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
26: aload 5
getfield org.apache.cassandra.thrift.IndexExpression.column_name:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
dup
iconst_1
27: aload 5
getfield org.apache.cassandra.thrift.IndexExpression.value:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.bytesToHex:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
aastore
dup
iconst_2
28: aload 8
invokevirtual org.apache.cassandra.serializers.MarshalException.getMessage:()Ljava/lang/String;
aastore
29: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 8 30: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.apache.cassandra.index.SecondaryIndexManager.listIndexes:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 9
goto 33
StackMap locals: org.apache.cassandra.config.CFMetaData java.util.List org.apache.cassandra.index.SecondaryIndexManager org.apache.cassandra.db.marshal.AbstractType int org.apache.cassandra.thrift.IndexExpression java.util.Iterator org.apache.cassandra.config.ColumnDefinition top java.util.Iterator
StackMap stack:
31: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.index.Index
astore 8
start local 8 32: iload 4
aload 8
aload 7
aload 5
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;
invokeinterface org.apache.cassandra.index.Index.supportsExpression:(Lorg/apache/cassandra/config/ColumnDefinition;Lorg/apache/cassandra/cql3/Operator;)Z
ior
istore 4
end local 8 33: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 31
end local 7 end local 5 34: StackMap locals: org.apache.cassandra.config.CFMetaData java.util.List org.apache.cassandra.index.SecondaryIndexManager org.apache.cassandra.db.marshal.AbstractType int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
35: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 metadata Lorg/apache/cassandra/config/CFMetaData;
0 36 1 index_clause Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;
3 36 2 idxManager Lorg/apache/cassandra/index/SecondaryIndexManager;
4 36 3 nameValidator Lorg/apache/cassandra/db/marshal/AbstractType<*>;
5 36 4 isIndexed Z
7 34 5 expression Lorg/apache/cassandra/thrift/IndexExpression;
10 15 7 me Lorg/apache/cassandra/serializers/MarshalException;
18 34 7 def Lorg/apache/cassandra/config/ColumnDefinition;
25 30 8 me Lorg/apache/cassandra/serializers/MarshalException;
32 33 8 index Lorg/apache/cassandra/index/Index;
Exception table:
from to target type
7 8 9 Class org.apache.cassandra.serializers.MarshalException
22 23 24 Class org.apache.cassandra.serializers.MarshalException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Lorg/apache/cassandra/config/CFMetaData;Ljava/util/List<Lorg/apache/cassandra/thrift/IndexExpression;>;)Z
MethodParameters:
Name Flags
metadata
index_clause
public static void validateKeyspaceNotYetExisting(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
invokevirtual org.apache.cassandra.config.Schema.getKeyspaces:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 7
StackMap locals: java.lang.String top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 2: aload 1
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Keyspace names must be case-insensitively unique (\"%s\" conflicts with \"%s\")"
iconst_2
anewarray java.lang.Object
dup
iconst_0
4: aload 0
aastore
dup
iconst_1
5: aload 1
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 1 7: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 newKsName Ljava/lang/String;
2 7 1 ksName Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
newKsName
public static void validateKeyspaceNotSystem(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.config.SchemaConstants.isLocalSystemKeyspace:(Ljava/lang/String;)Z
ifeq 2
1: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "%s keyspace is not user-modifiable"
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.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 modifiedKeyspace Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
modifiedKeyspace
}
SourceFile: "ThriftValidation.java"
InnerClasses:
public LegacyCellName = org.apache.cassandra.db.LegacyLayout$LegacyCellName of org.apache.cassandra.db.LegacyLayout
public final ForKey = org.apache.cassandra.db.PartitionPosition$ForKey of org.apache.cassandra.db.PartitionPosition
public KeyBound = org.apache.cassandra.dht.Token$KeyBound of org.apache.cassandra.dht.Token
public abstract TokenFactory = org.apache.cassandra.dht.Token$TokenFactory of org.apache.cassandra.dht.Token