public class org.apache.cassandra.gms.TokenSerializer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.gms.TokenSerializer
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/gms/TokenSerializer;
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.gms.TokenSerializer.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/gms/TokenSerializer;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.gms.TokenSerializer.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/gms/TokenSerializer;
public static void serialize(org.apache.cassandra.dht.IPartitioner, java.util.Collection<org.apache.cassandra.dht.Token>, java.io.DataOutput);
descriptor: (Lorg/apache/cassandra/dht/IPartitioner;Ljava/util/Collection;Ljava/io/DataOutput;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.dht.IPartitioner java.util.Collection java.io.DataOutput top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 3
start local 3 2: aload 0
invokeinterface org.apache.cassandra.dht.IPartitioner.getTokenFactory:()Lorg/apache/cassandra/dht/Token$TokenFactory;
aload 3
invokevirtual org.apache.cassandra.dht.Token$TokenFactory.toByteArray:(Lorg/apache/cassandra/dht/Token;)Ljava/nio/ByteBuffer;
astore 5
start local 5 3: getstatic org.apache.cassandra.gms.TokenSerializer.$assertionsDisabled:Z
ifne 4
aload 5
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
ifeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: org.apache.cassandra.dht.IPartitioner java.util.Collection java.io.DataOutput org.apache.cassandra.dht.Token java.util.Iterator java.nio.ByteBuffer
StackMap stack:
aload 5
invokevirtual java.nio.ByteBuffer.array:()[B
aload 2
invokestatic org.apache.cassandra.utils.ByteBufferUtil.writeWithLength:([BLjava/io/DataOutput;)V
end local 5 end local 3 5: StackMap locals: org.apache.cassandra.dht.IPartitioner java.util.Collection java.io.DataOutput top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: aload 2
iconst_0
invokeinterface java.io.DataOutput.writeInt:(I)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 partitioner Lorg/apache/cassandra/dht/IPartitioner;
0 8 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
0 8 2 out Ljava/io/DataOutput;
2 5 3 token Lorg/apache/cassandra/dht/Token;
3 5 5 tokenBuffer Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/cassandra/dht/IPartitioner;Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;Ljava/io/DataOutput;)V
MethodParameters:
Name Flags
partitioner
tokens
out
public static java.util.Collection<org.apache.cassandra.dht.Token> deserialize(org.apache.cassandra.dht.IPartitioner, java.io.DataInput);
descriptor: (Lorg/apache/cassandra/dht/IPartitioner;Ljava/io/DataInput;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: StackMap locals: java.util.Collection
StackMap stack:
aload 1
invokeinterface java.io.DataInput.readInt:()I
istore 3
start local 3 2: iload 3
iconst_1
if_icmpge 4
3: goto 9
4: StackMap locals: int
StackMap stack:
getstatic org.apache.cassandra.gms.TokenSerializer.logger:Lorg/slf4j/Logger;
ldc "Reading token of {}"
iload 3
i2l
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
5: iload 3
newarray 8
astore 4
start local 4 6: aload 1
aload 4
invokeinterface java.io.DataInput.readFully:([B)V
7: aload 2
aload 0
invokeinterface org.apache.cassandra.dht.IPartitioner.getTokenFactory:()Lorg/apache/cassandra/dht/Token$TokenFactory;
aload 4
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.dht.Token$TokenFactory.fromByteArray:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/dht/Token;
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 3 8: goto 1
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 partitioner Lorg/apache/cassandra/dht/IPartitioner;
0 10 1 in Ljava/io/DataInput;
1 10 2 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
2 8 3 size I
6 8 4 bintoken [B
Exceptions:
throws java.io.IOException
Signature: (Lorg/apache/cassandra/dht/IPartitioner;Ljava/io/DataInput;)Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
MethodParameters:
Name Flags
partitioner
in
}
SourceFile: "TokenSerializer.java"
InnerClasses:
public abstract TokenFactory = org.apache.cassandra.dht.Token$TokenFactory of org.apache.cassandra.dht.Token