public class org.apache.cassandra.db.compaction.LeveledCompactionStrategy extends org.apache.cassandra.db.compaction.AbstractCompactionStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.compaction.LeveledCompactionStrategy
super_class: org.apache.cassandra.db.compaction.AbstractCompactionStrategy
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String SSTABLE_SIZE_OPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sstable_size_in_mb"
private static final boolean tolerateSstableSize;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String LEVEL_FANOUT_SIZE_OPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "fanout_size"
public static final int DEFAULT_LEVEL_FANOUT_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10
final org.apache.cassandra.db.compaction.LeveledManifest manifest;
descriptor: Lorg/apache/cassandra/db/compaction/LeveledManifest;
flags: (0x0010) ACC_FINAL
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private final int maxSSTableSizeInMB;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int levelFanoutSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, 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/db/compaction/LeveledCompactionStrategy;
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.db.compaction.LeveledCompactionStrategy.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
4: ldc "cassandra.tolerate_sstable_size"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
putstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.tolerateSstableSize:Z
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.ColumnFamilyStore, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.db.compaction.AbstractCompactionStrategy.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Ljava/util/Map;)V
1: sipush 160
istore 3
start local 3 2: bipush 10
istore 4
start local 4 3: new org.apache.cassandra.db.compaction.SizeTieredCompactionStrategyOptions
dup
aload 2
invokespecial org.apache.cassandra.db.compaction.SizeTieredCompactionStrategyOptions.<init>:(Ljava/util/Map;)V
astore 5
start local 5 4: aload 2
ifnull 18
5: aload 2
ldc "sstable_size_in_mb"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 16
6: aload 2
ldc "sstable_size_in_mb"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
7: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.tolerateSstableSize:Z
ifne 16
8: iload 3
sipush 1000
if_icmplt 12
9: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Max sstable size of {}MB is configured for {}.{}; having a unit of compaction this large is probably a bad idea"
iconst_3
anewarray java.lang.Object
dup
iconst_0
10: iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
getfield org.apache.cassandra.db.ColumnFamilyStore.name:Ljava/lang/String;
aastore
dup
iconst_2
aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getColumnFamilyName:()Ljava/lang/String;
aastore
11: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
12: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy org.apache.cassandra.db.ColumnFamilyStore java.util.Map int int org.apache.cassandra.db.compaction.SizeTieredCompactionStrategyOptions
StackMap stack:
iload 3
bipush 50
if_icmpge 16
13: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Max sstable size of {}MB is configured for {}.{}. Testing done for CASSANDRA-5727 indicates that performance improves up to 160MB"
iconst_3
anewarray java.lang.Object
dup
iconst_0
14: iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
getfield org.apache.cassandra.db.ColumnFamilyStore.name:Ljava/lang/String;
aastore
dup
iconst_2
aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getColumnFamilyName:()Ljava/lang/String;
aastore
15: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
16: StackMap locals:
StackMap stack:
aload 2
ldc "fanout_size"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 18
17: aload 2
ldc "fanout_size"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 4
18: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.maxSSTableSizeInMB:I
19: aload 0
iload 4
putfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.levelFanoutSize:I
20: aload 0
new org.apache.cassandra.db.compaction.LeveledManifest
dup
aload 1
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.maxSSTableSizeInMB:I
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.levelFanoutSize:I
aload 5
invokespecial org.apache.cassandra.db.compaction.LeveledManifest.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;IILorg/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions;)V
putfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
21: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Created {}"
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
22: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 23 1 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
0 23 2 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 23 3 configuredMaxSSTableSize I
3 23 4 configuredLevelFanoutSize I
4 23 5 localOptions Lorg/apache/cassandra/db/compaction/SizeTieredCompactionStrategyOptions;
Signature: (Lorg/apache/cassandra/db/ColumnFamilyStore;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
cfs
options
public int getLevelSize(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
iload 1
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getLevelSize:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 1 1 i I
MethodParameters:
Name Flags
i
public int[] getAllLevelSize();
descriptor: ()[I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getAllLevelSize:()[I
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
public void startup();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.calculateLastCompactedKeys:()V
1: aload 0
invokespecial org.apache.cassandra.db.compaction.AbstractCompactionStrategy.startup:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
public org.apache.cassandra.db.compaction.AbstractCompactionTask getNextBackgroundTask(int);
descriptor: (I)Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: StackMap locals: java.util.Collection
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getCompactionCandidates:()Lorg/apache/cassandra/db/compaction/LeveledManifest$CompactionCandidate;
astore 4
start local 4 2: aload 4
ifnonnull 13
3: aload 0
iload 1
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionStrategy.findDroppableSSTable:(I)Lorg/apache/cassandra/io/sstable/format/SSTableReader;
astore 5
start local 5 4: aload 5
ifnonnull 7
5: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "No compaction necessary for {}"
aload 0
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
6: aconst_null
areturn
7: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int java.util.Collection top org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate org.apache.cassandra.io.sstable.format.SSTableReader
StackMap stack:
new org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate
dup
aload 5
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
8: aload 5
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
9: aload 0
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionStrategy.getMaxSSTableBytes:()J
10: invokespecial org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.<init>:(Ljava/util/Collection;IJ)V
astore 4
11: getstatic org.apache.cassandra.db.compaction.OperationType.TOMBSTONE_COMPACTION:Lorg/apache/cassandra/db/compaction/OperationType;
astore 3
end local 5 start local 3 12: goto 14
end local 3 13: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.compaction.OperationType.COMPACTION:Lorg/apache/cassandra/db/compaction/OperationType;
astore 3
start local 3 14: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int java.util.Collection org.apache.cassandra.db.compaction.OperationType org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate
StackMap stack:
aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.sstables:Ljava/util/Collection;
aload 2
invokeinterface java.util.Collection.equals:(Ljava/lang/Object;)Z
ifeq 19
15: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Could not acquire references for compacting SSTables {} which is not a problem per se,unless it happens frequently, in which case it must be reported. Will retry later."
16: aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.sstables:Ljava/util/Collection;
17: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
18: aconst_null
areturn
19: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTracker:()Lorg/apache/cassandra/db/lifecycle/Tracker;
aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.sstables:Ljava/util/Collection;
getstatic org.apache.cassandra.db.compaction.OperationType.COMPACTION:Lorg/apache/cassandra/db/compaction/OperationType;
invokevirtual org.apache.cassandra.db.lifecycle.Tracker.tryModify:(Ljava/lang/Iterable;Lorg/apache/cassandra/db/compaction/OperationType;)Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
astore 5
start local 5 20: aload 5
ifnull 24
21: new org.apache.cassandra.db.compaction.LeveledCompactionTask
dup
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 5
aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.level:I
iload 1
aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.maxSSTableBytes:J
iconst_0
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionTask.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;IIJZ)V
astore 6
start local 6 22: aload 6
aload 3
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionTask.setCompactionType:(Lorg/apache/cassandra/db/compaction/OperationType;)Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;
pop
23: aload 6
areturn
end local 6 24: StackMap locals: org.apache.cassandra.db.lifecycle.LifecycleTransaction
StackMap stack:
aload 4
getfield org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate.sstables:Ljava/util/Collection;
astore 2
end local 5 end local 4 end local 3 25: goto 1
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 26 1 gcBefore I
1 26 2 previousCandidate Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
12 13 3 op Lorg/apache/cassandra/db/compaction/OperationType;
14 25 3 op Lorg/apache/cassandra/db/compaction/OperationType;
2 25 4 candidate Lorg/apache/cassandra/db/compaction/LeveledManifest$CompactionCandidate;
4 12 5 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
20 25 5 txn Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
22 24 6 newTask Lorg/apache/cassandra/db/compaction/LeveledCompactionTask;
MethodParameters:
Name Flags
gcBefore
public synchronized java.util.Collection<org.apache.cassandra.db.compaction.AbstractCompactionTask> getMaximalTask(int, boolean);
descriptor: (IZ)Ljava/util/Collection;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=12, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getAllSSTables:()Ljava/lang/Iterable;
astore 3
start local 3 1: aload 3
invokestatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.filterSuspectSSTables:(Ljava/lang/Iterable;)Ljava/util/List;
astore 4
start local 4 2: aload 3
invokestatic com.google.common.collect.Iterables.isEmpty:(Ljava/lang/Iterable;)Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals: java.lang.Iterable java.lang.Iterable
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTracker:()Lorg/apache/cassandra/db/lifecycle/Tracker;
aload 4
getstatic org.apache.cassandra.db.compaction.OperationType.COMPACTION:Lorg/apache/cassandra/db/compaction/OperationType;
invokevirtual org.apache.cassandra.db.lifecycle.Tracker.tryModify:(Ljava/lang/Iterable;Lorg/apache/cassandra/db/compaction/OperationType;)Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
astore 5
start local 5 5: aload 5
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: org.apache.cassandra.db.lifecycle.LifecycleTransaction
StackMap stack:
iconst_1
anewarray org.apache.cassandra.db.compaction.AbstractCompactionTask
dup
iconst_0
new org.apache.cassandra.db.compaction.LeveledCompactionTask
dup
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 5
iconst_0
iload 1
aload 0
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionStrategy.getMaxSSTableBytes:()J
iconst_1
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionTask.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;IIJZ)V
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 8 1 gcBefore I
0 8 2 splitOutput Z
1 8 3 sstables Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
2 8 4 filteredSSTables Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
5 8 5 txn Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
Signature: (IZ)Ljava/util/Collection<Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;>;
MethodParameters:
Name Flags
gcBefore
splitOutput
public org.apache.cassandra.db.compaction.AbstractCompactionTask getUserDefinedTask(java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>, int);
descriptor: (Ljava/util/Collection;I)Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTracker:()Lorg/apache/cassandra/db/lifecycle/Tracker;
aload 1
getstatic org.apache.cassandra.db.compaction.OperationType.COMPACTION:Lorg/apache/cassandra/db/compaction/OperationType;
invokevirtual org.apache.cassandra.db.lifecycle.Tracker.tryModify:(Ljava/lang/Iterable;Lorg/apache/cassandra/db/compaction/OperationType;)Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
astore 3
start local 3 3: aload 3
ifnonnull 6
4: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Unable to mark {} for compaction; probably a background compaction got to it first. You can disable background compactions temporarily if this is a problem"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
5: aconst_null
areturn
6: StackMap locals: org.apache.cassandra.db.lifecycle.LifecycleTransaction
StackMap stack:
aload 1
invokeinterface java.util.Collection.size:()I
iconst_1
if_icmple 7
iconst_0
goto 8
StackMap locals:
StackMap stack:
7: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
StackMap locals:
StackMap stack: int
8: istore 4
start local 4 9: new org.apache.cassandra.db.compaction.LeveledCompactionTask
dup
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 3
iload 4
iload 2
iload 4
ifne 10
ldc 9223372036854775807
goto 11
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int org.apache.cassandra.db.lifecycle.LifecycleTransaction int
StackMap stack: new 9 new 9 org.apache.cassandra.db.ColumnFamilyStore org.apache.cassandra.db.lifecycle.LifecycleTransaction int int
10: aload 0
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionStrategy.getMaxSSTableBytes:()J
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int org.apache.cassandra.db.lifecycle.LifecycleTransaction int
StackMap stack: new 9 new 9 org.apache.cassandra.db.ColumnFamilyStore org.apache.cassandra.db.lifecycle.LifecycleTransaction int int long
11: iconst_0
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionTask.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;IIJZ)V
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 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 12 1 sstables Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 12 2 gcBefore I
3 12 3 transaction Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
9 12 4 level I
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;I)Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;
MethodParameters:
Name Flags
sstables
gcBefore
public org.apache.cassandra.db.compaction.AbstractCompactionTask getCompactionTask(org.apache.cassandra.db.lifecycle.LifecycleTransaction, int, long);
descriptor: (Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;IJ)Lorg/apache/cassandra/db/compaction/AbstractCompactionTask;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LifecycleTransaction.originals:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iconst_m1
istore 5
start local 5 2: aload 1
invokevirtual org.apache.cassandra.db.lifecycle.LifecycleTransaction.originals:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 8
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy org.apache.cassandra.db.lifecycle.LifecycleTransaction int long int top java.util.Iterator
StackMap stack:
3: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 6
start local 6 4: iload 5
iconst_m1
if_icmpne 6
5: aload 6
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
istore 5
6: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy org.apache.cassandra.db.lifecycle.LifecycleTransaction int long int org.apache.cassandra.io.sstable.format.SSTableReader java.util.Iterator
StackMap stack:
iload 5
aload 6
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
if_icmpeq 8
7: iconst_0
istore 5
end local 6 8: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy org.apache.cassandra.db.lifecycle.LifecycleTransaction int long int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: new org.apache.cassandra.db.compaction.LeveledCompactionTask
dup
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 1
iload 5
iload 2
lload 3
iconst_0
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionTask.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;IIJZ)V
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 10 1 txn Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
0 10 2 gcBefore I
0 10 3 maxSSTableBytes J
2 10 5 level I
4 8 6 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
MethodParameters:
Name Flags
txn
gcBefore
maxSSTableBytes
public java.util.Collection<java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>> groupSSTablesForAntiCompaction(java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: iconst_2
istore 2
start local 2 1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 4
start local 4 4: aload 4
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 6
start local 6 5: aload 3
aload 6
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Collection
astore 7
start local 7 6: aload 7
ifnonnull 9
7: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
8: aload 3
aload 6
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map org.apache.cassandra.io.sstable.format.SSTableReader java.util.Iterator java.lang.Integer java.util.Collection
StackMap stack:
aload 7
aload 4
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 4 10: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 12: aload 3
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 24
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map java.util.Collection top java.util.Iterator
StackMap stack:
13: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Collection
astore 5
start local 5 14: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 15: aload 5
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 9
goto 21
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map java.util.Collection java.util.Collection java.util.Iterator java.util.Collection top java.util.Iterator
StackMap stack:
16: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 8
start local 8 17: aload 7
aload 8
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
18: aload 7
invokeinterface java.util.Collection.size:()I
iload 2
if_icmpne 21
19: aload 4
aload 7
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
20: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
end local 8 21: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
22: aload 7
invokeinterface java.util.Collection.size:()I
ifeq 24
23: aload 4
aload 7
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 24: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection int java.util.Map java.util.Collection top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
25: 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 26 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 26 1 ssTablesToGroup Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
1 26 2 groupSize I
2 26 3 sstablesByLevel Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;>;
4 10 4 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
5 10 6 level Ljava/lang/Integer;
6 10 7 sstablesForLevel Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
12 26 4 groupedSSTables Ljava/util/Collection<Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;>;
14 24 5 levelOfSSTables Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
15 24 7 currGroup Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
17 21 8 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;)Ljava/util/Collection<Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;>;
MethodParameters:
Name Flags
ssTablesToGroup
public int getEstimatedRemainingTasks();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getEstimatedTasks:()I
istore 1
start local 1 1: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getCompactionStrategyManager:()Lorg/apache/cassandra/db/compaction/CompactionStrategyManager;
getfield org.apache.cassandra.db.compaction.CompactionStrategyManager.compactionLogger:Lorg/apache/cassandra/db/compaction/CompactionLogger;
aload 0
iload 1
invokevirtual org.apache.cassandra.db.compaction.CompactionLogger.pending:(Lorg/apache/cassandra/db/compaction/AbstractCompactionStrategy;I)V
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
1 3 1 n I
public long getMaxSSTableBytes();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.maxSSTableSizeInMB:I
i2l
ldc 1024
lmul
ldc 1024
lmul
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
public int getLevelFanoutSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.levelFanoutSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
public org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList getScanners(java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>, java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>);
descriptor: (Ljava/util/Collection;Ljava/util/Collection;)Lorg/apache/cassandra/db/compaction/AbstractCompactionStrategy$ScannerList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getSStablesPerLevelSnapshot:()[Ljava/util/Set;
astore 3
start local 3 1: invokestatic com.google.common.collect.ArrayListMultimap.create:()Lcom/google/common/collect/ArrayListMultimap;
astore 4
start local 4 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 5
start local 5 4: aload 5
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getSSTableLevel:()I
istore 7
start local 7 5: iload 7
aload 3
arraylength
if_icmpge 6
aload 3
iload 7
aaload
aload 5
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 10
6: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap org.apache.cassandra.io.sstable.format.SSTableReader java.util.Iterator int
StackMap stack:
getstatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy.logger:Lorg/slf4j/Logger;
ldc "Live sstable {} from level {} is not on corresponding level in the leveled manifest. This is not a problem per se, but may indicate an orphaned sstable due to a failed compaction not cleaned up properly."
7: aload 5
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getFilename:()Ljava/lang/String;
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
8: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
9: iconst_m1
istore 7
10: StackMap locals:
StackMap stack:
aload 4
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
aload 5
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 11: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
12: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.Collection.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 5
start local 5 13: aload 4
invokeinterface com.google.common.collect.Multimap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 25
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List top java.util.Iterator
StackMap stack:
14: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 6
start local 6 15: aload 6
invokevirtual java.lang.Integer.intValue:()I
ifgt 21
16: aload 4
aload 6
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 9
goto 19
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List java.lang.Integer java.util.Iterator top java.util.Iterator
StackMap stack:
17: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 8
start local 8 18: aload 5
aload 8
aload 2
aconst_null
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getScanner:(Ljava/util/Collection;Lcom/google/common/util/concurrent/RateLimiter;)Lorg/apache/cassandra/io/sstable/ISSTableScanner;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 19: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
20: goto 25
21: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List java.lang.Integer java.util.Iterator
StackMap stack:
aload 4
aload 6
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
aload 2
invokestatic org.apache.cassandra.db.compaction.LeveledCompactionStrategy$LeveledScanner.intersecting:(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Collection;
astore 8
start local 8 22: aload 8
invokeinterface java.util.Collection.isEmpty:()Z
ifne 25
23: new org.apache.cassandra.db.compaction.LeveledCompactionStrategy$LeveledScanner
dup
aload 8
aload 2
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionStrategy$LeveledScanner.<init>:(Ljava/util/Collection;Ljava/util/Collection;)V
astore 9
start local 9 24: aload 5
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 end local 6 25: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
26: goto 33
27: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List
StackMap stack: java.lang.Throwable
astore 6
start local 6 28: new org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList
dup
aload 5
invokespecial org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList.<init>:(Ljava/util/List;)V
invokevirtual org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList.close:()V
29: goto 32
30: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy java.util.Collection java.util.Collection java.util.Set[] com.google.common.collect.Multimap java.util.List java.lang.Throwable
StackMap stack: java.lang.Throwable
astore 7
start local 7 31: aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
end local 7 32: StackMap locals:
StackMap stack:
aload 6
athrow
end local 6 33: StackMap locals:
StackMap stack:
new org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList
dup
aload 5
invokespecial org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList.<init>:(Ljava/util/List;)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 34 1 sstables Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 34 2 ranges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
1 34 3 sstablesPerLevel [Ljava/util/Set;
2 34 4 byLevel Lcom/google/common/collect/Multimap<Ljava/lang/Integer;Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
4 11 5 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
5 11 7 level I
13 34 5 scanners Ljava/util/List<Lorg/apache/cassandra/io/sstable/ISSTableScanner;>;
15 25 6 level Ljava/lang/Integer;
18 19 8 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
22 25 8 intersecting Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
24 25 9 scanner Lorg/apache/cassandra/io/sstable/ISSTableScanner;
28 33 6 t Ljava/lang/Throwable;
31 32 7 t2 Ljava/lang/Throwable;
Exception table:
from to target type
13 26 27 Class java.lang.Throwable
28 29 30 Class java.lang.Throwable
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;)Lorg/apache/cassandra/db/compaction/AbstractCompactionStrategy$ScannerList;
MethodParameters:
Name Flags
sstables
ranges
public void replaceSSTables(java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>, java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>);
descriptor: (Ljava/util/Collection;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
aload 1
aload 2
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.replace:(Ljava/util/Collection;Ljava/util/Collection;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 2 1 removed Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 2 2 added Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;)V
MethodParameters:
Name Flags
removed
added
public void addSSTable(org.apache.cassandra.io.sstable.format.SSTableReader);
descriptor: (Lorg/apache/cassandra/io/sstable/format/SSTableReader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
aload 1
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.add:(Lorg/apache/cassandra/io/sstable/format/SSTableReader;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 2 1 added Lorg/apache/cassandra/io/sstable/format/SSTableReader;
MethodParameters:
Name Flags
added
public void removeSSTable(org.apache.cassandra.io.sstable.format.SSTableReader);
descriptor: (Lorg/apache/cassandra/io/sstable/format/SSTableReader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
aload 1
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.remove:(Lorg/apache/cassandra/io/sstable/format/SSTableReader;)I
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 2 1 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
MethodParameters:
Name Flags
sstable
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "LCS@%d(%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
private org.apache.cassandra.io.sstable.format.SSTableReader findDroppableSSTable(int);
descriptor: (I)Lorg/apache/cassandra/io/sstable/format/SSTableReader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getLevelCount:()I
istore 2
start local 2 1: goto 14
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.manifest:Lorg/apache/cassandra/db/compaction/LeveledManifest;
iload 2
new org.apache.cassandra.db.compaction.LeveledCompactionStrategy$1
dup
aload 0
iload 1
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionStrategy$1.<init>:(Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;I)V
invokevirtual org.apache.cassandra.db.compaction.LeveledManifest.getLevelSorted:(ILjava/util/Comparator;)Ljava/util/SortedSet;
astore 3
start local 3 3: aload 3
invokeinterface java.util.SortedSet.isEmpty:()Z
ifeq 5
4: goto 13
5: StackMap locals: java.util.SortedSet
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTracker:()Lorg/apache/cassandra/db/lifecycle/Tracker;
invokevirtual org.apache.cassandra.db.lifecycle.Tracker.getCompacting:()Ljava/util/Set;
astore 4
start local 4 6: aload 3
invokeinterface java.util.SortedSet.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int int java.util.SortedSet java.util.Set top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 5
start local 5 8: aload 5
iload 1
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getEstimatedDroppableTombstoneRatio:(I)D
aload 0
getfield org.apache.cassandra.db.compaction.LeveledCompactionStrategy.tombstoneThreshold:F
f2d
dcmpg
ifgt 10
9: goto 13
10: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int int java.util.SortedSet java.util.Set org.apache.cassandra.io.sstable.format.SSTableReader java.util.Iterator
StackMap stack:
aload 4
aload 5
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 12
aload 5
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.isMarkedSuspect:()Z
ifne 12
aload 0
aload 5
iload 1
invokevirtual org.apache.cassandra.db.compaction.LeveledCompactionStrategy.worthDroppingTombstones:(Lorg/apache/cassandra/io/sstable/format/SSTableReader;I)Z
ifeq 12
11: aload 5
areturn
end local 5 12: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int int java.util.SortedSet java.util.Set top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 4 end local 3 13: StackMap locals: org.apache.cassandra.db.compaction.LeveledCompactionStrategy int int
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
14: iload 2
ifge 2
end local 2 15: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
0 16 1 gcBefore I
1 15 2 i I
3 13 3 sstables Ljava/util/SortedSet<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
6 13 4 compacting Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
8 12 5 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
MethodParameters:
Name Flags
gcBefore final
public org.apache.cassandra.db.compaction.CompactionLogger$Strategy strategyLogger();
descriptor: ()Lorg/apache/cassandra/db/compaction/CompactionLogger$Strategy;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.db.compaction.LeveledCompactionStrategy$2
dup
aload 0
invokespecial org.apache.cassandra.db.compaction.LeveledCompactionStrategy$2.<init>:(Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/LeveledCompactionStrategy;
public static java.util.Map<java.lang.String, java.lang.String> validateOptions(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.db.compaction.AbstractCompactionStrategy.validateOptions:(Ljava/util/Map;)Ljava/util/Map;
astore 1
start local 1 1: aload 0
ldc "sstable_size_in_mb"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
aload 0
ldc "sstable_size_in_mb"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
goto 3
StackMap locals: java.util.Map
StackMap stack:
2: ldc "1"
StackMap locals:
StackMap stack: java.lang.String
3: astore 2
start local 2 4: aload 2
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 5: iload 3
iconst_1
if_icmpge 9
6: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "%s must be larger than 0, but was %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "sstable_size_in_mb"
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 3 7: StackMap locals: java.util.Map java.util.Map java.lang.String
StackMap stack: java.lang.NumberFormatException
astore 3
start local 3 8: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "%s is not a parsable int (base10) for %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
ldc "sstable_size_in_mb"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 3
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 9: StackMap locals:
StackMap stack:
aload 1
ldc "sstable_size_in_mb"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
ldc "fanout_size"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
aload 0
ldc "fanout_size"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
goto 12
StackMap locals:
StackMap stack:
11: bipush 10
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
12: astore 3
start local 3 13: aload 3
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 4
start local 4 14: iload 4
iconst_1
if_icmpge 18
15: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "%s must be larger than 0, but was %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "fanout_size"
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
end local 4 16: StackMap locals: java.util.Map java.util.Map java.lang.String java.lang.String
StackMap stack: java.lang.NumberFormatException
astore 4
start local 4 17: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "%s is not a parsable int (base10) for %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
ldc "fanout_size"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 18: StackMap locals:
StackMap stack:
aload 1
ldc "fanout_size"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 0
aload 1
invokestatic org.apache.cassandra.db.compaction.SizeTieredCompactionStrategyOptions.validateOptions:(Ljava/util/Map;Ljava/util/Map;)Ljava/util/Map;
astore 1
20: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 21 1 uncheckedOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
4 21 2 size Ljava/lang/String;
5 7 3 ssSize I
8 9 3 ex Ljava/lang/NumberFormatException;
13 21 3 levelFanoutSize Ljava/lang/String;
14 16 4 fanoutSize I
17 18 4 ex Ljava/lang/NumberFormatException;
Exception table:
from to target type
4 7 7 Class java.lang.NumberFormatException
13 16 16 Class java.lang.NumberFormatException
Exceptions:
throws org.apache.cassandra.exceptions.ConfigurationException
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
options
}
SourceFile: "LeveledCompactionStrategy.java"
NestMembers:
org.apache.cassandra.db.compaction.LeveledCompactionStrategy$1 org.apache.cassandra.db.compaction.LeveledCompactionStrategy$2 org.apache.cassandra.db.compaction.LeveledCompactionStrategy$LeveledScanner
InnerClasses:
public ScannerList = org.apache.cassandra.db.compaction.AbstractCompactionStrategy$ScannerList of org.apache.cassandra.db.compaction.AbstractCompactionStrategy
public abstract Strategy = org.apache.cassandra.db.compaction.CompactionLogger$Strategy of org.apache.cassandra.db.compaction.CompactionLogger
org.apache.cassandra.db.compaction.LeveledCompactionStrategy$1
org.apache.cassandra.db.compaction.LeveledCompactionStrategy$2
private LeveledScanner = org.apache.cassandra.db.compaction.LeveledCompactionStrategy$LeveledScanner of org.apache.cassandra.db.compaction.LeveledCompactionStrategy
public CompactionCandidate = org.apache.cassandra.db.compaction.LeveledManifest$CompactionCandidate of org.apache.cassandra.db.compaction.LeveledManifest