public abstract class org.apache.cassandra.db.compaction.writers.CompactionAwareWriter extends org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional implements org.apache.cassandra.utils.concurrent.Transactional
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.cassandra.db.compaction.writers.CompactionAwareWriter
super_class: org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional
{
protected static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final org.apache.cassandra.db.ColumnFamilyStore cfs;
descriptor: Lorg/apache/cassandra/db/ColumnFamilyStore;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.apache.cassandra.db.Directories directories;
descriptor: Lorg/apache/cassandra/db/Directories;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.util.Set<org.apache.cassandra.io.sstable.format.SSTableReader> nonExpiredSSTables;
descriptor: Ljava/util/Set;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
protected final long estimatedTotalKeys;
descriptor: J
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final long maxAge;
descriptor: J
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final long minRepairedAt;
descriptor: J
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.apache.cassandra.io.sstable.SSTableRewriter sstableWriter;
descriptor: Lorg/apache/cassandra/io/sstable/SSTableRewriter;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.apache.cassandra.db.lifecycle.LifecycleTransaction txn;
descriptor: Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.util.List<org.apache.cassandra.db.Directories$DataDirectory> locations;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectory;>;
private final java.util.List<org.apache.cassandra.db.PartitionPosition> diskBoundaries;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;
private int locationIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.ColumnFamilyStore, org.apache.cassandra.db.Directories, org.apache.cassandra.db.lifecycle.LifecycleTransaction, java.util.Set<org.apache.cassandra.io.sstable.format.SSTableReader>, boolean, );
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;Ljava/util/Set;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
iload 6
invokespecial org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;Ljava/util/Set;Z)V
1: return
end local 6 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 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 2 1 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
0 2 2 directories Lorg/apache/cassandra/db/Directories;
0 2 3 txn Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
0 2 4 nonExpiredSSTables Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 2 5 offline Z
0 2 6 keepOriginals Z
Signature: (Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;ZZ)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
cfs
directories
txn
nonExpiredSSTables
offline
keepOriginals
public void <init>(org.apache.cassandra.db.ColumnFamilyStore, org.apache.cassandra.db.Directories, org.apache.cassandra.db.lifecycle.LifecycleTransaction, java.util.Set<org.apache.cassandra.io.sstable.format.SSTableReader>, );
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;Ljava/util/Set;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
2: aload 0
aload 2
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.directories:Lorg/apache/cassandra/db/Directories;
3: aload 0
aload 4
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.nonExpiredSSTables:Ljava/util/Set;
4: aload 0
aload 3
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.txn:Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
5: aload 0
aload 4
invokestatic org.apache.cassandra.io.sstable.format.SSTableReader.getApproximateKeyCount:(Ljava/lang/Iterable;)J
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.estimatedTotalKeys:J
6: aload 0
aload 4
invokestatic org.apache.cassandra.db.compaction.CompactionTask.getMaxDataAge:(Ljava/util/Collection;)J
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.maxAge:J
7: aload 0
aload 1
aload 3
iload 5
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.maxAge:J
invokestatic org.apache.cassandra.io.sstable.SSTableRewriter.construct:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/lifecycle/ILifecycleTransaction;ZJ)Lorg/apache/cassandra/io/sstable/SSTableRewriter;
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
8: aload 0
aload 4
invokestatic org.apache.cassandra.db.compaction.CompactionTask.getMinRepairedAt:(Ljava/util/Set;)J
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.minRepairedAt:J
9: aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getDiskBoundaries:()Lorg/apache/cassandra/db/DiskBoundaries;
astore 6
start local 6 10: aload 0
aload 6
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.diskBoundaries:Ljava/util/List;
11: aload 0
aload 6
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locations:Ljava/util/List;
12: aload 0
iconst_m1
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
13: return
end local 6 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 14 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 14 1 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
0 14 2 directories Lorg/apache/cassandra/db/Directories;
0 14 3 txn Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
0 14 4 nonExpiredSSTables Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 14 5 keepOriginals Z
10 14 6 db Lorg/apache/cassandra/db/DiskBoundaries;
Signature: (Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/Directories;Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;Ljava/util/Set<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;Z)V
MethodParameters:
Name Flags
cfs
directories
txn
nonExpiredSSTables
keepOriginals
protected java.lang.Throwable doAbort(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
aload 1
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.abort:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 1 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
protected java.lang.Throwable doCommit(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
aload 1
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.commit:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 1 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
protected void doPrepare();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.prepareToCommit:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
public java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader> finish();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.finish:()Ljava/lang/Object;
pop
1: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.finished:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
Signature: ()Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
public long estimatedKeys();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.estimatedTotalKeys:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
public final boolean append(org.apache.cassandra.db.rows.UnfilteredRowIterator);
descriptor: (Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.apache.cassandra.db.rows.UnfilteredRowIterator.partitionKey:()Lorg/apache/cassandra/db/DecoratedKey;
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.maybeSwitchWriter:(Lorg/apache/cassandra/db/DecoratedKey;)V
1: aload 0
aload 1
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.realAppend:(Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 2 1 partition Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;
MethodParameters:
Name Flags
partition
protected java.lang.Throwable doPostCleanup(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.close:()V
1: aload 0
aload 1
invokespecial org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional.doPostCleanup:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 2 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
protected abstract boolean realAppend(org.apache.cassandra.db.rows.UnfilteredRowIterator);
descriptor: (Lorg/apache/cassandra/db/rows/UnfilteredRowIterator;)Z
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
partition
protected void maybeSwitchWriter(org.apache.cassandra.db.DecoratedKey);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.diskBoundaries:Ljava/util/List;
ifnonnull 6
1: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
ifge 5
2: aload 0
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.nonExpiredSSTables:Ljava/util/Set;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.cfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.nonExpiredSSTables:Ljava/util/Set;
getstatic org.apache.cassandra.db.compaction.OperationType.UNKNOWN:Lorg/apache/cassandra/db/compaction/OperationType;
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getExpectedCompactedFileSize:(Ljava/lang/Iterable;Lorg/apache/cassandra/db/compaction/OperationType;)J
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.getWriteDirectory:(Ljava/lang/Iterable;J)Lorg/apache/cassandra/db/Directories$DataDirectory;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.switchCompactionLocation:(Lorg/apache/cassandra/db/Directories$DataDirectory;)V
4: aload 0
iconst_0
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
end local 2 5: StackMap locals:
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
iconst_m1
if_icmple 8
aload 1
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.diskBoundaries:Ljava/util/List;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.PartitionPosition
invokevirtual org.apache.cassandra.db.DecoratedKey.compareTo:(Lorg/apache/cassandra/db/PartitionPosition;)I
ifge 8
7: return
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
istore 2
start local 2 9: goto 11
10: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
iconst_1
iadd
putfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
iconst_m1
if_icmpeq 10
aload 1
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.diskBoundaries:Ljava/util/List;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.PartitionPosition
invokevirtual org.apache.cassandra.db.DecoratedKey.compareTo:(Lorg/apache/cassandra/db/PartitionPosition;)I
ifgt 10
12: iload 2
iflt 14
13: getstatic org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.logger:Lorg/slf4j/Logger;
ldc "Switching write location from {} to {}"
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locations:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locations:Ljava/util/List;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locations:Ljava/util/List;
aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.locationIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectory
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.switchCompactionLocation:(Lorg/apache/cassandra/db/Directories$DataDirectory;)V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 16 1 key Lorg/apache/cassandra/db/DecoratedKey;
3 5 2 defaultLocation Lorg/apache/cassandra/db/Directories$DataDirectory;
9 16 2 prevIdx I
MethodParameters:
Name Flags
key
protected abstract void switchCompactionLocation(org.apache.cassandra.db.Directories$DataDirectory);
descriptor: (Lorg/apache/cassandra/db/Directories$DataDirectory;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
directory
public org.apache.cassandra.db.Directories getDirectories();
descriptor: ()Lorg/apache/cassandra/db/Directories;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.directories:Lorg/apache/cassandra/db/Directories;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
public org.apache.cassandra.db.Directories$DataDirectory getWriteDirectory(java.lang.Iterable<org.apache.cassandra.io.sstable.format.SSTableReader>, long);
descriptor: (Ljava/lang/Iterable;J)Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 4
start local 4 1: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: org.apache.cassandra.db.compaction.writers.CompactionAwareWriter java.lang.Iterable long java.io.File top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 5
start local 5 3: aload 4
ifnonnull 5
4: aload 5
getfield org.apache.cassandra.io.sstable.format.SSTableReader.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
astore 4
5: StackMap locals: org.apache.cassandra.db.compaction.writers.CompactionAwareWriter java.lang.Iterable long java.io.File org.apache.cassandra.io.sstable.format.SSTableReader java.util.Iterator
StackMap stack:
aload 4
aload 5
getfield org.apache.cassandra.io.sstable.format.SSTableReader.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getfield org.apache.cassandra.io.sstable.Descriptor.directory:Ljava/io/File;
invokevirtual java.io.File.equals:(Ljava/lang/Object;)Z
ifne 8
6: getstatic org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.logger:Lorg/slf4j/Logger;
ldc "All sstables not from the same disk - putting results in {}"
aload 4
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
7: goto 9
end local 5 8: StackMap locals: org.apache.cassandra.db.compaction.writers.CompactionAwareWriter java.lang.Iterable long java.io.File top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: StackMap locals: org.apache.cassandra.db.compaction.writers.CompactionAwareWriter java.lang.Iterable long java.io.File
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.getDirectories:()Lorg/apache/cassandra/db/Directories;
aload 4
invokevirtual org.apache.cassandra.db.Directories.getDataDirectoryForFile:(Ljava/io/File;)Lorg/apache/cassandra/db/Directories$DataDirectory;
astore 5
start local 5 10: aload 5
ifnull 20
11: aload 5
invokevirtual org.apache.cassandra.db.Directories$DataDirectory.getAvailableSpace:()J
lstore 6
start local 6 12: lload 6
lload 2
lcmp
ifge 18
13: new java.lang.RuntimeException
dup
ldc "Not enough space to write %s to %s (%s available)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
14: lload 2
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
dup
iconst_1
15: aload 5
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
aastore
dup
iconst_2
16: lload 6
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
17: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: org.apache.cassandra.db.Directories$DataDirectory long
StackMap stack:
getstatic org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.logger:Lorg/slf4j/Logger;
ldc "putting compaction results in {}"
aload 4
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
19: aload 5
areturn
end local 6 20: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.getDirectories:()Lorg/apache/cassandra/db/Directories;
lload 2
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocation:(J)Lorg/apache/cassandra/db/Directories$DataDirectory;
astore 5
21: aload 5
ifnonnull 25
22: new java.lang.RuntimeException
dup
ldc "Not enough disk space to store %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
23: lload 2
invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
aastore
24: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 26 1 sstables Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 26 2 estimatedWriteSize J
1 26 4 directory Ljava/io/File;
3 8 5 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
10 26 5 d Lorg/apache/cassandra/db/Directories$DataDirectory;
12 20 6 availableSpace J
Signature: (Ljava/lang/Iterable<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;J)Lorg/apache/cassandra/db/Directories$DataDirectory;
MethodParameters:
Name Flags
sstables
estimatedWriteSize
public org.apache.cassandra.db.compaction.writers.CompactionAwareWriter setRepairedAt(long);
descriptor: (J)Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.sstableWriter:Lorg/apache/cassandra/io/sstable/SSTableRewriter;
lload 1
invokevirtual org.apache.cassandra.io.sstable.SSTableRewriter.setRepairedAt:(J)Lorg/apache/cassandra/io/sstable/SSTableRewriter;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/compaction/writers/CompactionAwareWriter;
0 2 1 repairedAt J
MethodParameters:
Name Flags
repairedAt
public java.lang.Object finish();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.finish:()Ljava/util/Collection;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CompactionAwareWriter.java"
InnerClasses:
public DataDirectory = org.apache.cassandra.db.Directories$DataDirectory of org.apache.cassandra.db.Directories
public abstract AbstractTransactional = org.apache.cassandra.utils.concurrent.Transactional$AbstractTransactional of org.apache.cassandra.utils.concurrent.Transactional