final class org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName
super_class: java.lang.Object
{
java.util.Map<java.lang.String, java.util.List<java.io.File>> files;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName.files:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName;
void list(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokedynamic accept()Ljava/io/FileFilter;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/io/File;)Z
org/apache/cassandra/db/lifecycle/LogFile.isLogFile(Ljava/io/File;)Z (6)
(Ljava/io/File;)Z
invokevirtual java.io.File.listFiles:(Ljava/io/FileFilter;)[Ljava/io/File;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
aload 0
invokedynamic accept(Lorg/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName.add(Ljava/io/File;)V (5)
(Ljava/io/File;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName;
0 2 1 directory Ljava/io/File;
MethodParameters:
Name Flags
directory
void add(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName.files:Ljava/util/Map;
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 1: aload 2
ifnonnull 4
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
3: aload 0
getfield org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName.files:Ljava/util/Map;
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.util.List
StackMap stack:
aload 2
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName;
0 6 1 file Ljava/io/File;
1 6 2 filesByName Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
file
boolean removeUnfinishedLeftovers();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName.files:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
1: invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName.removeUnfinishedLeftovers(Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Ljava/lang/Boolean;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic java.util.function.Predicate.isEqual:(Ljava/lang/Object;)Ljava/util/function/Predicate;
invokeinterface java.util.stream.Stream.allMatch:(Ljava/util/function/Predicate;)Z
4: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/lifecycle/LogTransaction$LogFilesByName;
static boolean removeUnfinishedLeftovers(java.util.Map$Entry<java.lang.String, java.util.List<java.io.File>>);
descriptor: (Ljava/util/Map$Entry;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 0
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
invokestatic org.apache.cassandra.db.lifecycle.LogFile.make:(Ljava/lang/String;Ljava/util/List;)Lorg/apache/cassandra/db/lifecycle/LogFile;
astore 3
start local 3 2: aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.verify:()Z
ifeq 12
3: aload 3
aconst_null
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.removeUnfinishedLeftovers:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 4
start local 4 4: aload 4
ifnull 10
5: getstatic org.apache.cassandra.db.lifecycle.LogTransaction.logger:Lorg/slf4j/Logger;
ldc "Failed to remove unfinished transaction leftovers for transaction log {}"
6: aload 3
iconst_1
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.toString:(Z)Ljava/lang/String;
aload 4
7: invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
8: aload 3
ifnull 9
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.close:()V
9: StackMap locals: java.util.Map$Entry java.lang.Throwable java.lang.Throwable org.apache.cassandra.db.lifecycle.LogFile java.lang.Throwable
StackMap stack:
iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 3
ifnull 11
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.close:()V
11: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 4 12: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.lifecycle.LogTransaction.logger:Lorg/slf4j/Logger;
ldc "Unexpected disk state: failed to read transaction log {}"
aload 3
iconst_1
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.toString:(Z)Ljava/lang/String;
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;)V
13: aload 3
ifnull 14
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.close:()V
14: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 1
16: aload 3
ifnull 17
aload 3
invokevirtual org.apache.cassandra.db.lifecycle.LogFile.close:()V
end local 3 StackMap locals:
StackMap stack:
17: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 2
aload 1
ifnonnull 19
aload 2
astore 1
goto 20
StackMap locals:
StackMap stack:
19: aload 1
aload 2
if_acmpeq 20
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
20: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;>;
2 17 3 txn Lorg/apache/cassandra/db/lifecycle/LogFile;
4 12 4 failure Ljava/lang/Throwable;
Exception table:
from to target type
2 8 15 any
12 13 15 any
1 9 18 any
10 11 18 any
12 14 18 any
15 18 18 any
Signature: (Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;>;)Z
MethodParameters:
Name Flags
entry
}
SourceFile: "LogTransaction.java"
NestHost: org.apache.cassandra.db.lifecycle.LogTransaction
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
private final LogFilesByName = org.apache.cassandra.db.lifecycle.LogTransaction$LogFilesByName of org.apache.cassandra.db.lifecycle.LogTransaction