public class org.apache.cassandra.serializers.ListSerializer<T> extends org.apache.cassandra.serializers.CollectionSerializer<java.util.List<T>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.serializers.ListSerializer
super_class: org.apache.cassandra.serializers.CollectionSerializer
{
private static final java.util.Map<org.apache.cassandra.serializers.TypeSerializer<?>, org.apache.cassandra.serializers.ListSerializer> instances;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lorg/apache/cassandra/serializers/TypeSerializer<*>;Lorg/apache/cassandra/serializers/ListSerializer;>;
public final org.apache.cassandra.serializers.TypeSerializer<T> elements;
descriptor: Lorg/apache/cassandra/serializers/TypeSerializer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.apache.cassandra.serializers.ListSerializer.instances:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
public static synchronized <T> org.apache.cassandra.serializers.ListSerializer<T> getInstance(org.apache.cassandra.serializers.TypeSerializer<T>);
descriptor: (Lorg/apache/cassandra/serializers/TypeSerializer;)Lorg/apache/cassandra/serializers/ListSerializer;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.apache.cassandra.serializers.ListSerializer.instances:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.serializers.ListSerializer
astore 1
start local 1 1: aload 1
ifnonnull 4
2: new org.apache.cassandra.serializers.ListSerializer
dup
aload 0
invokespecial org.apache.cassandra.serializers.ListSerializer.<init>:(Lorg/apache/cassandra/serializers/TypeSerializer;)V
astore 1
3: getstatic org.apache.cassandra.serializers.ListSerializer.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.serializers.ListSerializer
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 elements Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
1 5 1 t Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
Signature: <T:Ljava/lang/Object;>(Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;)Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
MethodParameters:
Name Flags
elements
private void <init>(org.apache.cassandra.serializers.TypeSerializer<T>);
descriptor: (Lorg/apache/cassandra/serializers/TypeSerializer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.apache.cassandra.serializers.CollectionSerializer.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 3 1 elements Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
Signature: (Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;)V
MethodParameters:
Name Flags
elements
public java.util.List<java.nio.ByteBuffer> serializeValues(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.cassandra.serializers.ListSerializer java.util.List java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 3: aload 2
aload 0
getfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 3
invokeinterface org.apache.cassandra.serializers.TypeSerializer.serialize:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 6 1 values Ljava/util/List<TT;>;
1 6 2 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
3 4 3 value TT;
Signature: (Ljava/util/List<TT;>;)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
values
public int getElementCount(java.util.List<T>);
descriptor: (Ljava/util/List;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.size:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 1 1 value Ljava/util/List<TT;>;
Signature: (Ljava/util/List<TT;>;)I
MethodParameters:
Name Flags
value
public void validateForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 3
start local 3 1: aload 3
aload 2
invokestatic org.apache.cassandra.serializers.ListSerializer.readCollectionSize:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
istore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 6
4: StackMap locals: java.nio.ByteBuffer int int
StackMap stack:
aload 0
getfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 3
aload 2
invokestatic org.apache.cassandra.serializers.ListSerializer.readValue:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.serializers.TypeSerializer.validate:(Ljava/nio/ByteBuffer;)V
5: iinc 5 1
StackMap locals:
StackMap stack:
6: iload 5
iload 4
if_icmplt 4
end local 5 7: aload 3
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 11
8: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Unexpected extraneous bytes after list value"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 9: StackMap locals: org.apache.cassandra.serializers.ListSerializer java.nio.ByteBuffer org.apache.cassandra.transport.ProtocolVersion
StackMap stack: java.nio.BufferUnderflowException
pop
10: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Not enough bytes to read a list"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 12 1 bytes Ljava/nio/ByteBuffer;
0 12 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
1 9 3 input Ljava/nio/ByteBuffer;
2 9 4 n I
3 7 5 i I
Exception table:
from to target type
0 9 9 Class java.nio.BufferUnderflowException
MethodParameters:
Name Flags
bytes
version
public java.util.List<T> deserializeForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 3
start local 3 1: aload 3
aload 2
invokestatic org.apache.cassandra.serializers.ListSerializer.readCollectionSize:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
istore 4
start local 4 2: iload 4
ifge 4
3: new org.apache.cassandra.serializers.MarshalException
dup
ldc "The data cannot be deserialized as a list"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
new java.util.ArrayList
dup
iload 4
sipush 256
invokestatic java.lang.Math.min:(II)I
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 14
7: StackMap locals: java.util.List int
StackMap stack:
aload 3
aload 2
invokestatic org.apache.cassandra.serializers.ListSerializer.readValue:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
astore 7
start local 7 8: aload 7
ifnull 12
9: aload 0
getfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 7
invokeinterface org.apache.cassandra.serializers.TypeSerializer.validate:(Ljava/nio/ByteBuffer;)V
10: aload 5
aload 0
getfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 7
invokeinterface org.apache.cassandra.serializers.TypeSerializer.deserialize:(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: goto 13
12: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 5
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 13: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 6
iload 4
if_icmplt 7
end local 6 15: aload 3
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 17
16: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Unexpected extraneous bytes after list value"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 5
18: areturn
end local 5 end local 4 end local 3 19: StackMap locals: org.apache.cassandra.serializers.ListSerializer java.nio.ByteBuffer org.apache.cassandra.transport.ProtocolVersion
StackMap stack: java.nio.BufferUnderflowException
pop
20: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Not enough bytes to read a list"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 21 1 bytes Ljava/nio/ByteBuffer;
0 21 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
1 19 3 input Ljava/nio/ByteBuffer;
2 19 4 n I
5 19 5 l Ljava/util/List<TT;>;
6 15 6 i I
8 13 7 databb Ljava/nio/ByteBuffer;
Exception table:
from to target type
0 18 19 Class java.nio.BufferUnderflowException
Signature: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
bytes
version
public java.nio.ByteBuffer getElement(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 3
start local 3 1: aload 3
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokestatic org.apache.cassandra.serializers.ListSerializer.readCollectionSize:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
istore 4
start local 4 2: iload 4
iload 2
if_icmpgt 4
3: aconst_null
areturn
4: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
iconst_0
istore 5
start local 5 5: goto 9
6: StackMap locals: int
StackMap stack:
aload 3
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 6
start local 6 7: aload 3
aload 3
invokevirtual java.nio.ByteBuffer.position:()I
iload 6
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
end local 6 8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 2
if_icmplt 6
end local 5 10: aload 3
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokestatic org.apache.cassandra.serializers.ListSerializer.readValue:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
11: areturn
end local 4 end local 3 12: StackMap locals: org.apache.cassandra.serializers.ListSerializer java.nio.ByteBuffer int
StackMap stack: java.nio.BufferUnderflowException
pop
13: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Not enough bytes to read a list"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 14 1 serializedList Ljava/nio/ByteBuffer;
0 14 2 index I
1 12 3 input Ljava/nio/ByteBuffer;
2 12 4 n I
5 10 5 i I
7 8 6 length I
Exception table:
from to target type
0 3 12 Class java.nio.BufferUnderflowException
4 11 12 Class java.nio.BufferUnderflowException
MethodParameters:
Name Flags
serializedList
index
public java.lang.String toString(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: iconst_1
istore 3
start local 3 2: aload 2
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: org.apache.cassandra.serializers.ListSerializer java.util.List java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 4
start local 4 5: iload 3
ifeq 7
6: iconst_0
istore 3
goto 8
7: StackMap locals: org.apache.cassandra.serializers.ListSerializer java.util.List java.lang.StringBuilder int java.lang.Object java.util.Iterator
StackMap stack:
aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.apache.cassandra.serializers.ListSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 4
invokeinterface org.apache.cassandra.serializers.TypeSerializer.toString:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 9: StackMap locals: org.apache.cassandra.serializers.ListSerializer java.util.List java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 2
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
0 12 1 value Ljava/util/List<TT;>;
1 12 2 sb Ljava/lang/StringBuilder;
2 12 3 isFirst Z
5 9 4 element TT;
Signature: (Ljava/util/List<TT;>;)Ljava/lang/String;
MethodParameters:
Name Flags
value
public java.lang.Class<java.util.List<T>> getType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/serializers/ListSerializer<TT;>;
Signature: ()Ljava/lang/Class<Ljava/util/List<TT;>;>;
public java.util.List serializeValues(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/util/List;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual org.apache.cassandra.serializers.ListSerializer.serializeValues:(Ljava/util/List;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
public int getElementCount(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual org.apache.cassandra.serializers.ListSerializer.getElementCount:(Ljava/util/List;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.String toString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual org.apache.cassandra.serializers.ListSerializer.toString:(Ljava/util/List;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object deserializeForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Lorg/apache/cassandra/serializers/CollectionSerializer<Ljava/util/List<TT;>;>;
SourceFile: "ListSerializer.java"