public class org.apache.cassandra.utils.CounterId implements java.lang.Comparable<org.apache.cassandra.utils.CounterId>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.utils.CounterId
super_class: java.lang.Object
{
public static final int LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private final java.nio.ByteBuffer id;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static org.apache.cassandra.utils.CounterId$LocalCounterIdHolder localId();
descriptor: ()Lorg/apache/cassandra/utils/CounterId$LocalCounterIdHolder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.apache.cassandra.utils.CounterId$LocalId.instance:Lorg/apache/cassandra/utils/CounterId$LocalCounterIdHolder;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.cassandra.utils.CounterId getLocalId();
descriptor: ()Lorg/apache/cassandra/utils/CounterId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.apache.cassandra.utils.CounterId.localId:()Lorg/apache/cassandra/utils/CounterId$LocalCounterIdHolder;
invokevirtual org.apache.cassandra.utils.CounterId$LocalCounterIdHolder.get:()Lorg/apache/cassandra/utils/CounterId;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.apache.cassandra.utils.CounterId fromInt(int);
descriptor: (I)Lorg/apache/cassandra/utils/CounterId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: ldc -4611686018427387904
iload 0
i2l
lor
lstore 1
start local 1 1: new org.apache.cassandra.utils.CounterId
dup
bipush 16
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
iconst_0
lconst_0
invokevirtual java.nio.ByteBuffer.putLong:(IJ)Ljava/nio/ByteBuffer;
bipush 8
lload 1
invokevirtual java.nio.ByteBuffer.putLong:(IJ)Ljava/nio/ByteBuffer;
invokespecial org.apache.cassandra.utils.CounterId.<init>:(Ljava/nio/ByteBuffer;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 n I
1 2 1 lowBits J
MethodParameters:
Name Flags
n
public static org.apache.cassandra.utils.CounterId wrap(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/CounterId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.utils.CounterId
dup
aload 0
invokespecial org.apache.cassandra.utils.CounterId.<init>:(Ljava/nio/ByteBuffer;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 id Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
id
public static org.apache.cassandra.utils.CounterId wrap(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Lorg/apache/cassandra/utils/CounterId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
iload 1
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: aload 2
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
bipush 16
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
3: aload 2
invokestatic org.apache.cassandra.utils.CounterId.wrap:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/CounterId;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bb Ljava/nio/ByteBuffer;
0 4 1 offset I
1 4 2 dup Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
bb
offset
private void <init>(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
bipush 16
if_icmpeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "A CounterId representation is exactly 16 bytes"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.utils.CounterId java.nio.ByteBuffer
StackMap stack:
aload 0
aload 1
putfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/utils/CounterId;
0 5 1 id Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
id
public static org.apache.cassandra.utils.CounterId generate();
descriptor: ()Lorg/apache/cassandra/utils/CounterId;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.cassandra.utils.CounterId
dup
invokestatic org.apache.cassandra.utils.UUIDGen.getTimeUUIDBytes:()[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokespecial org.apache.cassandra.utils.CounterId.<init>:(Ljava/nio/ByteBuffer;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.nio.ByteBuffer bytes();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/CounterId;
public boolean isLocalId();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.utils.CounterId.getLocalId:()Lorg/apache/cassandra/utils/CounterId;
invokevirtual org.apache.cassandra.utils.CounterId.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/CounterId;
public int compareTo(org.apache.cassandra.utils.CounterId);
descriptor: (Lorg/apache/cassandra/utils/CounterId;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
aload 1
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
aload 1
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
bipush 16
invokestatic org.apache.cassandra.utils.ByteBufferUtil.compareSubArrays:(Ljava/nio/ByteBuffer;ILjava/nio/ByteBuffer;II)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/CounterId;
0 1 1 o Lorg/apache/cassandra/utils/CounterId;
MethodParameters:
Name Flags
o
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.UUIDGen.getUUID:(Ljava/nio/ByteBuffer;)Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/CounterId;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.utils.CounterId
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
aload 2
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/utils/CounterId;
0 6 1 o Ljava/lang/Object;
5 6 2 otherId Lorg/apache/cassandra/utils/CounterId;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.utils.CounterId.id:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/CounterId;
public int compareTo(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 org.apache.cassandra.utils.CounterId
invokevirtual org.apache.cassandra.utils.CounterId.compareTo:(Lorg/apache/cassandra/utils/CounterId;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lorg/apache/cassandra/utils/CounterId;>;
SourceFile: "CounterId.java"
NestMembers:
org.apache.cassandra.utils.CounterId$LocalCounterIdHolder org.apache.cassandra.utils.CounterId$LocalId
InnerClasses:
private LocalCounterIdHolder = org.apache.cassandra.utils.CounterId$LocalCounterIdHolder of org.apache.cassandra.utils.CounterId
private LocalId = org.apache.cassandra.utils.CounterId$LocalId of org.apache.cassandra.utils.CounterId