public abstract class org.apache.cassandra.serializers.CollectionSerializer<T> implements org.apache.cassandra.serializers.TypeSerializer<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.cassandra.serializers.CollectionSerializer
super_class: java.lang.Object
{
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/serializers/CollectionSerializer<TT;>;
protected abstract java.util.List<java.nio.ByteBuffer> serializeValues(T);
descriptor: (Ljava/lang/Object;)Ljava/util/List;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TT;)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
value
protected abstract int getElementCount();
descriptor: (Ljava/lang/Object;)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TT;)I
MethodParameters:
Name Flags
value
public abstract T deserializeForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)TT;
MethodParameters:
Name Flags
buffer
version
public abstract void validateForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
buffer
version
public java.nio.ByteBuffer serialize(T);
descriptor: (Ljava/lang/Object;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.serializers.CollectionSerializer.serializeValues:(Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 1: aload 2
aload 0
aload 1
invokevirtual org.apache.cassandra.serializers.CollectionSerializer.getElementCount:(Ljava/lang/Object;)I
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokestatic org.apache.cassandra.serializers.CollectionSerializer.pack:(Ljava/util/Collection;ILorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/serializers/CollectionSerializer<TT;>;
0 2 1 value TT;
1 2 2 values Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (TT;)Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
value
public T deserialize(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.serializers.CollectionSerializer.deserializeForNativeProtocol:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/serializers/CollectionSerializer<TT;>;
0 1 1 bytes Ljava/nio/ByteBuffer;
Signature: (Ljava/nio/ByteBuffer;)TT;
MethodParameters:
Name Flags
bytes
public void validate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.serializers.CollectionSerializer.validateForNativeProtocol:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/serializers/CollectionSerializer<TT;>;
0 2 1 bytes Ljava/nio/ByteBuffer;
Exceptions:
throws org.apache.cassandra.serializers.MarshalException
MethodParameters:
Name Flags
bytes
public static java.nio.ByteBuffer pack(java.util.Collection<java.nio.ByteBuffer>, int, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/util/Collection;ILorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: java.util.Collection int org.apache.cassandra.transport.ProtocolVersion int top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 4
start local 4 3: iload 3
aload 4
aload 2
invokestatic org.apache.cassandra.serializers.CollectionSerializer.sizeOfValue:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
iadd
istore 3
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
aload 2
invokestatic org.apache.cassandra.serializers.CollectionSerializer.sizeOfCollectionSize:(ILorg/apache/cassandra/transport/ProtocolVersion;)I
iload 3
iadd
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 4
start local 4 6: aload 4
iload 1
aload 2
invokestatic org.apache.cassandra.serializers.CollectionSerializer.writeCollectionSize:(Ljava/nio/ByteBuffer;ILorg/apache/cassandra/transport/ProtocolVersion;)V
7: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 10
StackMap locals: java.util.Collection int org.apache.cassandra.transport.ProtocolVersion int java.nio.ByteBuffer top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 5
start local 5 9: aload 4
aload 5
aload 2
invokestatic org.apache.cassandra.serializers.CollectionSerializer.writeValue:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)V
end local 5 10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 buffers Ljava/util/Collection<Ljava/nio/ByteBuffer;>;
0 12 1 elements I
0 12 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
1 12 3 size I
3 4 4 bb Ljava/nio/ByteBuffer;
6 12 4 result Ljava/nio/ByteBuffer;
9 10 5 bb Ljava/nio/ByteBuffer;
Signature: (Ljava/util/Collection<Ljava/nio/ByteBuffer;>;ILorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffers
elements
version
protected static void writeCollectionSize(java.nio.ByteBuffer, int, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;ILorg/apache/cassandra/transport/ProtocolVersion;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 output Ljava/nio/ByteBuffer;
0 2 1 elements I
0 2 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
output
elements
version
public static int readCollectionSize(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.ByteBuffer.getInt:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input Ljava/nio/ByteBuffer;
0 1 1 version Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
input
version
protected static int sizeOfCollectionSize(int, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (ILorg/apache/cassandra/transport/ProtocolVersion;)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_4
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 elements I
0 1 1 version Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
elements
version
public static void writeValue(java.nio.ByteBuffer, java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: aload 0
iconst_m1
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
2: return
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
4: aload 0
aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 output Ljava/nio/ByteBuffer;
0 6 1 value Ljava/nio/ByteBuffer;
0 6 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
output
value
version
public static java.nio.ByteBuffer readValue(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 2
start local 2 1: iload 2
ifge 3
2: aconst_null
areturn
3: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokestatic org.apache.cassandra.utils.ByteBufferUtil.readBytes:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 input Ljava/nio/ByteBuffer;
0 4 1 version Lorg/apache/cassandra/transport/ProtocolVersion;
1 4 2 size I
MethodParameters:
Name Flags
input
version
public static int sizeOfValue(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
iconst_4
goto 2
StackMap locals:
StackMap stack:
1: iconst_4
aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value Ljava/nio/ByteBuffer;
0 3 1 version Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
value
version
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
SourceFile: "CollectionSerializer.java"