public abstract class org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase<Unit> implements org.apache.cassandra.dht.tokenallocator.TokenAllocator<Unit>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
super_class: java.lang.Object
{
final java.util.NavigableMap<org.apache.cassandra.dht.Token, Unit> sortedTokens;
descriptor: Ljava/util/NavigableMap;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/NavigableMap<Lorg/apache/cassandra/dht/Token;TUnit;>;
final org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit> strategy;
descriptor: Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;
flags: (0x0010) ACC_FINAL
Signature: Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<TUnit;>;
final org.apache.cassandra.dht.IPartitioner partitioner;
descriptor: Lorg/apache/cassandra/dht/IPartitioner;
flags: (0x0010) ACC_FINAL
protected void <init>(java.util.NavigableMap<org.apache.cassandra.dht.Token, Unit>, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit>, org.apache.cassandra.dht.IPartitioner);
descriptor: (Ljava/util/NavigableMap;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;Lorg/apache/cassandra/dht/IPartitioner;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.sortedTokens:Ljava/util/NavigableMap;
2: aload 0
aload 2
putfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.strategy:Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;
3: aload 0
aload 3
putfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.partitioner:Lorg/apache/cassandra/dht/IPartitioner;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase<TUnit;>;
0 5 1 sortedTokens Ljava/util/NavigableMap<Lorg/apache/cassandra/dht/Token;TUnit;>;
0 5 2 strategy Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<TUnit;>;
0 5 3 partitioner Lorg/apache/cassandra/dht/IPartitioner;
Signature: (Ljava/util/NavigableMap<Lorg/apache/cassandra/dht/Token;TUnit;>;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<TUnit;>;Lorg/apache/cassandra/dht/IPartitioner;)V
MethodParameters:
Name Flags
sortedTokens
strategy
partitioner
public abstract int getReplicas();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
protected java.util.Map<Unit, org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo<Unit>> createUnitInfos(java.util.Map<java.lang.Object, org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo>);
descriptor: (Ljava/util/Map;)Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=9, locals=6, args_size=2
start local 0 start local 1 0: invokestatic com.google.common.collect.Maps.newHashMap:()Ljava/util/HashMap;
astore 2
start local 2 1: aload 0
getfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.sortedTokens:Ljava/util/NavigableMap;
invokeinterface java.util.NavigableMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase java.util.Map java.util.Map 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 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo
astore 5
start local 5 4: aload 5
ifnonnull 6
5: aload 2
aload 3
new org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo
dup
aload 3
dconst_0
aload 1
aload 0
getfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.strategy:Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;
invokespecial org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo.<init>:(Ljava/lang/Object;DLjava/util/Map;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;)V
dup
astore 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase java.util.Map java.util.Map java.lang.Object java.util.Iterator org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo
StackMap stack:
aload 5
dup
getfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo.tokenCount:I
iconst_1
iadd
putfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo.tokenCount:I
end local 5 end local 3 7: StackMap locals: org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase<TUnit;>;
0 9 1 groups Ljava/util/Map<Ljava/lang/Object;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;>;
1 9 2 map Ljava/util/Map<TUnit;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$UnitInfo<TUnit;>;>;
3 7 3 n TUnit;
4 7 5 ni Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$UnitInfo<TUnit;>;
Signature: (Ljava/util/Map<Ljava/lang/Object;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;>;)Ljava/util/Map<TUnit;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$UnitInfo<TUnit;>;>;
MethodParameters:
Name Flags
groups
private java.util.Map$Entry<org.apache.cassandra.dht.Token, Unit> mapEntryFor(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Ljava/util/Map$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.sortedTokens:Ljava/util/NavigableMap;
aload 1
invokeinterface java.util.NavigableMap.floorEntry:(Ljava/lang/Object;)Ljava/util/Map$Entry;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 0
getfield org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.sortedTokens:Ljava/util/NavigableMap;
invokeinterface java.util.NavigableMap.lastEntry:()Ljava/util/Map$Entry;
astore 2
3: StackMap locals: java.util.Map$Entry
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase<TUnit;>;
0 4 1 t Lorg/apache/cassandra/dht/Token;
1 4 2 en Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Token;TUnit;>;
Signature: (Lorg/apache/cassandra/dht/Token;)Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Token;TUnit;>;
MethodParameters:
Name Flags
t
Unit unitFor(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase.mapEntryFor:(Lorg/apache/cassandra/dht/Token;)Ljava/util/Map$Entry;
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase<TUnit;>;
0 1 1 t Lorg/apache/cassandra/dht/Token;
Signature: (Lorg/apache/cassandra/dht/Token;)TUnit;
MethodParameters:
Name Flags
t
private static <Unit> org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo getGroup(Unit, java.util.Map<java.lang.Object, org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo>, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<Unit>);
descriptor: (Ljava/lang/Object;Ljava/util/Map;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;)Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
invokeinterface org.apache.cassandra.dht.tokenallocator.ReplicationStrategy.getGroup:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 1: aload 1
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo
astore 4
start local 4 2: aload 4
ifnonnull 4
3: aload 1
aload 3
new org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo
dup
aload 3
invokespecial org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo.<init>:(Ljava/lang/Object;)V
dup
astore 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.lang.Object org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 unit TUnit;
0 5 1 groupMap Ljava/util/Map<Ljava/lang/Object;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;>;
0 5 2 strategy Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<TUnit;>;
1 5 3 groupClass Ljava/lang/Object;
2 5 4 group Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;
Signature: <Unit:Ljava/lang/Object;>(TUnit;Ljava/util/Map<Ljava/lang/Object;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;>;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<TUnit;>;)Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorBase$GroupInfo;
MethodParameters:
Name Flags
unit
groupMap
strategy
}
Signature: <Unit:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/cassandra/dht/tokenallocator/TokenAllocator<TUnit;>;
SourceFile: "TokenAllocatorBase.java"
NestMembers:
org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$BaseTokenInfo org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$CircularList org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$TokenInfo org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$Weighted
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
BaseTokenInfo = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$BaseTokenInfo of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
private CircularList = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$CircularList of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
GroupInfo = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$GroupInfo of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
TokenInfo = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$TokenInfo of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
UnitInfo = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$UnitInfo of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase
Weighted = org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase$Weighted of org.apache.cassandra.dht.tokenallocator.TokenAllocatorBase