public class org.apache.cassandra.cql3.functions.FromJsonFct extends org.apache.cassandra.cql3.functions.NativeScalarFunction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.functions.FromJsonFct
super_class: org.apache.cassandra.cql3.functions.NativeScalarFunction
{
public static final org.apache.cassandra.cql3.functions.FunctionName NAME;
descriptor: Lorg/apache/cassandra/cql3/functions/FunctionName;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.util.Map<org.apache.cassandra.db.marshal.AbstractType<?>, org.apache.cassandra.cql3.functions.FromJsonFct> instances;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lorg/apache/cassandra/db/marshal/AbstractType<*>;Lorg/apache/cassandra/cql3/functions/FromJsonFct;>;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/cql3/functions/FromJsonFct;
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.cql3.functions.FromJsonFct.$assertionsDisabled:Z
3: ldc "fromjson"
invokestatic org.apache.cassandra.cql3.functions.FunctionName.nativeFunction:(Ljava/lang/String;)Lorg/apache/cassandra/cql3/functions/FunctionName;
putstatic org.apache.cassandra.cql3.functions.FromJsonFct.NAME:Lorg/apache/cassandra/cql3/functions/FunctionName;
4: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putstatic org.apache.cassandra.cql3.functions.FromJsonFct.instances:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.cassandra.cql3.functions.FromJsonFct getInstance(org.apache.cassandra.db.marshal.AbstractType<?>);
descriptor: (Lorg/apache/cassandra/db/marshal/AbstractType;)Lorg/apache/cassandra/cql3/functions/FromJsonFct;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.apache.cassandra.cql3.functions.FromJsonFct.instances:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.functions.FromJsonFct
astore 1
start local 1 1: aload 1
ifnonnull 4
2: new org.apache.cassandra.cql3.functions.FromJsonFct
dup
aload 0
invokespecial org.apache.cassandra.cql3.functions.FromJsonFct.<init>:(Lorg/apache/cassandra/db/marshal/AbstractType;)V
astore 1
3: getstatic org.apache.cassandra.cql3.functions.FromJsonFct.instances:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: org.apache.cassandra.cql3.functions.FromJsonFct
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 returnType Lorg/apache/cassandra/db/marshal/AbstractType<*>;
1 5 1 func Lorg/apache/cassandra/cql3/functions/FromJsonFct;
Signature: (Lorg/apache/cassandra/db/marshal/AbstractType<*>;)Lorg/apache/cassandra/cql3/functions/FromJsonFct;
MethodParameters:
Name Flags
returnType
private void <init>(org.apache.cassandra.db.marshal.AbstractType<?>);
descriptor: (Lorg/apache/cassandra/db/marshal/AbstractType;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "fromjson"
aload 1
iconst_1
anewarray org.apache.cassandra.db.marshal.AbstractType
dup
iconst_0
getstatic org.apache.cassandra.db.marshal.UTF8Type.instance:Lorg/apache/cassandra/db/marshal/UTF8Type;
aastore
invokespecial org.apache.cassandra.cql3.functions.NativeScalarFunction.<init>:(Ljava/lang/String;Lorg/apache/cassandra/db/marshal/AbstractType;[Lorg/apache/cassandra/db/marshal/AbstractType;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/functions/FromJsonFct;
0 2 1 returnType Lorg/apache/cassandra/db/marshal/AbstractType<*>;
Signature: (Lorg/apache/cassandra/db/marshal/AbstractType<*>;)V
MethodParameters:
Name Flags
returnType
public java.nio.ByteBuffer execute(org.apache.cassandra.transport.ProtocolVersion, java.util.List<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/util/List;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.cql3.functions.FromJsonFct.$assertionsDisabled:Z
ifne 1
aload 2
invokeinterface java.util.List.size:()I
iconst_1
if_icmpeq 1
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Unexpectedly got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface java.util.List.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " arguments for fromJson()"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 3
start local 3 2: aload 3
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.nio.ByteBuffer
StackMap stack:
getstatic org.apache.cassandra.db.marshal.UTF8Type.instance:Lorg/apache/cassandra/db/marshal/UTF8Type;
invokevirtual org.apache.cassandra.db.marshal.UTF8Type.getSerializer:()Lorg/apache/cassandra/serializers/TypeSerializer;
aload 3
invokeinterface org.apache.cassandra.serializers.TypeSerializer.deserialize:(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 5: getstatic org.apache.cassandra.cql3.Json.JSON_OBJECT_MAPPER:Lorg/codehaus/jackson/map/ObjectMapper;
aload 4
ldc Ljava/lang/Object;
invokevirtual org.codehaus.jackson.map.ObjectMapper.readValue:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
astore 5
start local 5 6: aload 5
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals: java.lang.String java.lang.Object
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.functions.FromJsonFct.returnType:Lorg/apache/cassandra/db/marshal/AbstractType;
aload 5
invokevirtual org.apache.cassandra.db.marshal.AbstractType.fromJSONObject:(Ljava/lang/Object;)Lorg/apache/cassandra/cql3/Term;
aload 1
invokestatic org.apache.cassandra.cql3.QueryOptions.forProtocolVersion:(Lorg/apache/cassandra/transport/ProtocolVersion;)Lorg/apache/cassandra/cql3/QueryOptions;
invokeinterface org.apache.cassandra.cql3.Term.bindAndGet:(Lorg/apache/cassandra/cql3/QueryOptions;)Ljava/nio/ByteBuffer;
9: areturn
end local 5 10: StackMap locals: org.apache.cassandra.cql3.functions.FromJsonFct org.apache.cassandra.transport.ProtocolVersion java.util.List java.nio.ByteBuffer java.lang.String
StackMap stack: java.io.IOException
astore 5
start local 5 11: new org.apache.cassandra.exceptions.FunctionExecutionException
dup
getstatic org.apache.cassandra.cql3.functions.FromJsonFct.NAME:Lorg/apache/cassandra/cql3/functions/FunctionName;
ldc "text"
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
ldc "Could not decode JSON string '%s': %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 5
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.FunctionExecutionException.<init>:(Lorg/apache/cassandra/cql3/functions/FunctionName;Ljava/util/List;Ljava/lang/String;)V
athrow
end local 5 12: StackMap locals:
StackMap stack: org.apache.cassandra.serializers.MarshalException
astore 5
start local 5 13: aload 0
aload 5
invokestatic org.apache.cassandra.exceptions.FunctionExecutionException.create:(Lorg/apache/cassandra/cql3/functions/Function;Ljava/lang/Throwable;)Lorg/apache/cassandra/exceptions/FunctionExecutionException;
athrow
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 14 0 this Lorg/apache/cassandra/cql3/functions/FromJsonFct;
0 14 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
0 14 2 parameters Ljava/util/List<Ljava/nio/ByteBuffer;>;
2 14 3 argument Ljava/nio/ByteBuffer;
5 14 4 jsonArg Ljava/lang/String;
6 10 5 object Ljava/lang/Object;
11 12 5 exc Ljava/io/IOException;
13 14 5 exc Lorg/apache/cassandra/serializers/MarshalException;
Exception table:
from to target type
5 7 10 Class java.io.IOException
8 9 10 Class java.io.IOException
5 7 12 Class org.apache.cassandra.serializers.MarshalException
8 9 12 Class org.apache.cassandra.serializers.MarshalException
Signature: (Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/util/List<Ljava/nio/ByteBuffer;>;)Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
protocolVersion
parameters
}
SourceFile: "FromJsonFct.java"