public class org.apache.cassandra.serializers.SetSerializer<T> extends org.apache.cassandra.serializers.CollectionSerializer<java.util.Set<T>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.serializers.SetSerializer
super_class: org.apache.cassandra.serializers.CollectionSerializer
{
private static final java.util.Map<org.apache.cassandra.serializers.TypeSerializer<?>, org.apache.cassandra.serializers.SetSerializer> 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/SetSerializer;>;
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;>;
private final java.util.Comparator<java.nio.ByteBuffer> comparator;
descriptor: Ljava/util/Comparator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;
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.SetSerializer.instances:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
public static synchronized <T> org.apache.cassandra.serializers.SetSerializer<T> getInstance(org.apache.cassandra.serializers.TypeSerializer<T>, java.util.Comparator<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/serializers/TypeSerializer;Ljava/util/Comparator;)Lorg/apache/cassandra/serializers/SetSerializer;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.serializers.SetSerializer.instances:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.serializers.SetSerializer
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new org.apache.cassandra.serializers.SetSerializer
dup
aload 0
aload 1
invokespecial org.apache.cassandra.serializers.SetSerializer.<init>:(Lorg/apache/cassandra/serializers/TypeSerializer;Ljava/util/Comparator;)V
astore 2
3: getstatic org.apache.cassandra.serializers.SetSerializer.instances:Ljava/util/Map;
aload 0
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: org.apache.cassandra.serializers.SetSerializer
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 elements Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
0 5 1 elementComparator Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;
1 5 2 t Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
Signature: <T:Ljava/lang/Object;>(Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;)Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
MethodParameters:
Name Flags
elements
elementComparator
private void <init>(org.apache.cassandra.serializers.TypeSerializer<T>, java.util.Comparator<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/serializers/TypeSerializer;Ljava/util/Comparator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.cassandra.serializers.CollectionSerializer.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.serializers.SetSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
2: aload 0
aload 2
putfield org.apache.cassandra.serializers.SetSerializer.comparator:Ljava/util/Comparator;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
0 4 1 elements Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;
0 4 2 comparator Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;
Signature: (Lorg/apache/cassandra/serializers/TypeSerializer<TT;>;Ljava/util/Comparator<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
elements
comparator
public java.util.List<java.nio.ByteBuffer> serializeValues(java.util.Set<T>);
descriptor: (Ljava/util/Set;)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.Set.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.cassandra.serializers.SetSerializer java.util.Set 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.SetSerializer.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
aload 0
getfield org.apache.cassandra.serializers.SetSerializer.comparator:Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
0 7 1 values Ljava/util/Set<TT;>;
1 7 2 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
3 4 3 value TT;
Signature: (Ljava/util/Set<TT;>;)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
values
public int getElementCount(java.util.Set<T>);
descriptor: (Ljava/util/Set;)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.Set.size:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
0 1 1 value Ljava/util/Set<TT;>;
Signature: (Ljava/util/Set<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.SetSerializer.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.SetSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 3
aload 2
invokestatic org.apache.cassandra.serializers.SetSerializer.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 set 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.SetSerializer 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 set"
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/SetSerializer<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.Set<T> deserializeForNativeProtocol(java.nio.ByteBuffer, org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/Set;
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.SetSerializer.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 set"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
new java.util.LinkedHashSet
dup
iload 4
sipush 256
invokestatic java.lang.Math.min:(II)I
invokespecial java.util.LinkedHashSet.<init>:(I)V
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 11
7: StackMap locals: java.util.Set int
StackMap stack:
aload 3
aload 2
invokestatic org.apache.cassandra.serializers.SetSerializer.readValue:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
astore 7
start local 7 8: aload 0
getfield org.apache.cassandra.serializers.SetSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 7
invokeinterface org.apache.cassandra.serializers.TypeSerializer.validate:(Ljava/nio/ByteBuffer;)V
9: aload 5
aload 0
getfield org.apache.cassandra.serializers.SetSerializer.elements:Lorg/apache/cassandra/serializers/TypeSerializer;
aload 7
invokeinterface org.apache.cassandra.serializers.TypeSerializer.deserialize:(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 10: iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
iload 4
if_icmplt 7
end local 6 12: aload 3
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 14
13: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Unexpected extraneous bytes after set value"
invokespecial org.apache.cassandra.serializers.MarshalException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 5
15: areturn
end local 5 end local 4 end local 3 16: StackMap locals: org.apache.cassandra.serializers.SetSerializer java.nio.ByteBuffer org.apache.cassandra.transport.ProtocolVersion
StackMap stack: java.nio.BufferUnderflowException
pop
17: new org.apache.cassandra.serializers.MarshalException
dup
ldc "Not enough bytes to read a set"
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 18 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
0 18 1 bytes Ljava/nio/ByteBuffer;
0 18 2 version Lorg/apache/cassandra/transport/ProtocolVersion;
1 16 3 input Ljava/nio/ByteBuffer;
2 16 4 n I
5 16 5 l Ljava/util/Set<TT;>;
6 12 6 i I
8 10 7 databb Ljava/nio/ByteBuffer;
Exception table:
from to target type
0 15 16 Class java.nio.BufferUnderflowException
Signature: (Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/Set<TT;>;
MethodParameters:
Name Flags
bytes
version
public java.lang.String toString(java.util.Set<T>);
descriptor: (Ljava/util/Set;)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: aload 2
bipush 123
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: iconst_1
istore 3
start local 3 3: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.cassandra.serializers.SetSerializer java.util.Set 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 8
6: iconst_0
istore 3
7: goto 9
8: StackMap locals: org.apache.cassandra.serializers.SetSerializer java.util.Set 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
9: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.apache.cassandra.serializers.SetSerializer.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 10: StackMap locals: org.apache.cassandra.serializers.SetSerializer java.util.Set java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: aload 2
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: 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 13 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
0 13 1 value Ljava/util/Set<TT;>;
1 13 2 sb Ljava/lang/StringBuilder;
3 13 3 isFirst Z
5 10 4 element TT;
Signature: (Ljava/util/Set<TT;>;)Ljava/lang/String;
MethodParameters:
Name Flags
value
public java.lang.Class<java.util.Set<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/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/serializers/SetSerializer<TT;>;
Signature: ()Ljava/lang/Class<Ljava/util/Set<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.Set
invokevirtual org.apache.cassandra.serializers.SetSerializer.serializeValues:(Ljava/util/Set;)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.Set
invokevirtual org.apache.cassandra.serializers.SetSerializer.getElementCount:(Ljava/util/Set;)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.Set
invokevirtual org.apache.cassandra.serializers.SetSerializer.toString:(Ljava/util/Set;)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.SetSerializer.deserializeForNativeProtocol:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Lorg/apache/cassandra/serializers/CollectionSerializer<Ljava/util/Set<TT;>;>;
SourceFile: "SetSerializer.java"