public class org.apache.cassandra.io.sstable.SSTableLoader implements org.apache.cassandra.streaming.StreamEventHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.io.sstable.SSTableLoader
super_class: java.lang.Object
{
private final java.io.File directory;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String keyspace;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.io.sstable.SSTableLoader$Client client;
descriptor: Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int connectionsPerHost;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.utils.OutputHandler outputHandler;
descriptor: Lorg/apache/cassandra/utils/OutputHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.net.InetAddress> failedHosts;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/net/InetAddress;>;
private final java.util.List<org.apache.cassandra.io.sstable.format.SSTableReader> sstables;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
private final com.google.common.collect.Multimap<java.net.InetAddress, org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections> streamingDetails;
descriptor: Lcom/google/common/collect/Multimap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
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/io/sstable/SSTableLoader;
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.io.sstable.SSTableLoader.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.File, org.apache.cassandra.io.sstable.SSTableLoader$Client, org.apache.cassandra.utils.OutputHandler);
descriptor: (Ljava/io/File;Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;Lorg/apache/cassandra/utils/OutputHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
iconst_1
invokespecial org.apache.cassandra.io.sstable.SSTableLoader.<init>:(Ljava/io/File;Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;Lorg/apache/cassandra/utils/OutputHandler;I)V
1: return
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/io/sstable/SSTableLoader;
0 2 1 directory Ljava/io/File;
0 2 2 client Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
0 2 3 outputHandler Lorg/apache/cassandra/utils/OutputHandler;
MethodParameters:
Name Flags
directory
client
outputHandler
public void <init>(java.io.File, org.apache.cassandra.io.sstable.SSTableLoader$Client, org.apache.cassandra.utils.OutputHandler, int);
descriptor: (Ljava/io/File;Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;Lorg/apache/cassandra/utils/OutputHandler;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.apache.cassandra.io.sstable.SSTableLoader.failedHosts:Ljava/util/Set;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
3: aload 0
invokestatic com.google.common.collect.HashMultimap.create:()Lcom/google/common/collect/HashMultimap;
putfield org.apache.cassandra.io.sstable.SSTableLoader.streamingDetails:Lcom/google/common/collect/Multimap;
4: aload 0
aload 1
putfield org.apache.cassandra.io.sstable.SSTableLoader.directory:Ljava/io/File;
5: aload 0
aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
putfield org.apache.cassandra.io.sstable.SSTableLoader.keyspace:Ljava/lang/String;
6: aload 0
aload 2
putfield org.apache.cassandra.io.sstable.SSTableLoader.client:Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
7: aload 0
aload 3
putfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
8: aload 0
iload 4
putfield org.apache.cassandra.io.sstable.SSTableLoader.connectionsPerHost:I
9: return
end local 4 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/io/sstable/SSTableLoader;
0 10 1 directory Ljava/io/File;
0 10 2 client Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
0 10 3 outputHandler Lorg/apache/cassandra/utils/OutputHandler;
0 10 4 connectionsPerHost I
MethodParameters:
Name Flags
directory
client
outputHandler
connectionsPerHost
protected java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader> openSSTables(java.util.Map<java.net.InetAddress, java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>>);
descriptor: (Ljava/util/Map;)Ljava/util/Collection;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Opening sstables and calculating sections to stream"
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.directory:Ljava/io/File;
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
2: aload 0
aload 1
invokedynamic apply(Lorg/apache/cassandra/io/sstable/SSTableLoader;Ljava/util/Map;)Ljava/util/function/BiFunction;
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;)Ljava/lang/Object;
org/apache/cassandra/io/sstable/SSTableLoader.lambda$0(Ljava/util/Map;Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileType;)Ljava/lang/Boolean; (7)
(Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileType;)Ljava/lang/Boolean;
3: getstatic org.apache.cassandra.db.Directories$OnTxnErr.IGNORE:Lorg/apache/cassandra/db/Directories$OnTxnErr;
4: invokestatic org.apache.cassandra.db.lifecycle.LifecycleTransaction.getFiles:(Ljava/nio/file/Path;Ljava/util/function/BiFunction;Lorg/apache/cassandra/db/Directories$OnTxnErr;)Ljava/util/List;
pop
5: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 6 1 ranges Ljava/util/Map<Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;>;
Signature: (Ljava/util/Map<Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;>;)Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
MethodParameters:
Name Flags
ranges final
public org.apache.cassandra.streaming.StreamResultFuture stream();
descriptor: ()Lorg/apache/cassandra/streaming/StreamResultFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
iconst_0
anewarray org.apache.cassandra.streaming.StreamEventHandler
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.stream:(Ljava/util/Set;[Lorg/apache/cassandra/streaming/StreamEventHandler;)Lorg/apache/cassandra/streaming/StreamResultFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
public org.apache.cassandra.streaming.StreamResultFuture stream(java.util.Set<java.net.InetAddress>, org.apache.cassandra.streaming.StreamEventHandler[]);
descriptor: (Ljava/util/Set;[Lorg/apache/cassandra/streaming/StreamEventHandler;)Lorg/apache/cassandra/streaming/StreamResultFuture;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=9, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.client:Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.keyspace:Ljava/lang/String;
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader$Client.init:(Ljava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Established connection to initial hosts"
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
2: new org.apache.cassandra.streaming.StreamPlan
dup
ldc "Bulk Load"
lconst_0
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.connectionsPerHost:I
iconst_0
iconst_0
iconst_0
invokespecial org.apache.cassandra.streaming.StreamPlan.<init>:(Ljava/lang/String;JIZZZ)V
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.client:Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader$Client.getConnectionFactory:()Lorg/apache/cassandra/streaming/StreamConnectionFactory;
invokevirtual org.apache.cassandra.streaming.StreamPlan.connectionFactory:(Lorg/apache/cassandra/streaming/StreamConnectionFactory;)Lorg/apache/cassandra/streaming/StreamPlan;
astore 3
start local 3 3: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.client:Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader$Client.getEndpointToRangesMap:()Ljava/util/Map;
astore 4
start local 4 4: aload 0
aload 4
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.openSSTables:(Ljava/util/Map;)Ljava/util/Collection;
pop
5: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 7
6: aload 3
invokevirtual org.apache.cassandra.streaming.StreamPlan.execute:()Lorg/apache/cassandra/streaming/StreamResultFuture;
areturn
7: StackMap locals: org.apache.cassandra.streaming.StreamPlan java.util.Map
StackMap stack:
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Streaming relevant part of %s to %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.names:(Ljava/util/Collection;)Ljava/lang/String;
aastore
dup
iconst_1
aload 4
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
8: aload 4
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 19
StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Set org.apache.cassandra.streaming.StreamEventHandler[] org.apache.cassandra.streaming.StreamPlan java.util.Map top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 10: aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 7
start local 7 11: aload 1
aload 7
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 13
12: goto 19
13: StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Set org.apache.cassandra.streaming.StreamEventHandler[] org.apache.cassandra.streaming.StreamPlan java.util.Map java.util.Map$Entry java.util.Iterator java.net.InetAddress
StackMap stack:
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 8
start local 8 14: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.streamingDetails:Lcom/google/common/collect/Multimap;
aload 7
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 10
goto 17
StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Set org.apache.cassandra.streaming.StreamEventHandler[] org.apache.cassandra.streaming.StreamPlan java.util.Map java.util.Map$Entry java.util.Iterator java.net.InetAddress java.util.List top java.util.Iterator
StackMap stack:
15: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections
astore 9
start local 9 16: aload 8
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 17: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
18: aload 3
aload 7
aload 8
invokevirtual org.apache.cassandra.streaming.StreamPlan.transferFiles:(Ljava/net/InetAddress;Ljava/util/Collection;)Lorg/apache/cassandra/streaming/StreamPlan;
pop
end local 8 end local 7 end local 5 19: StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Set org.apache.cassandra.streaming.StreamEventHandler[] org.apache.cassandra.streaming.StreamPlan java.util.Map top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
20: aload 3
aload 0
aload 2
invokevirtual org.apache.cassandra.streaming.StreamPlan.listeners:(Lorg/apache/cassandra/streaming/StreamEventHandler;[Lorg/apache/cassandra/streaming/StreamEventHandler;)Lorg/apache/cassandra/streaming/StreamPlan;
pop
21: aload 3
invokevirtual org.apache.cassandra.streaming.StreamPlan.execute:()Lorg/apache/cassandra/streaming/StreamResultFuture;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 22 1 toIgnore Ljava/util/Set<Ljava/net/InetAddress;>;
0 22 2 listeners [Lorg/apache/cassandra/streaming/StreamEventHandler;
3 22 3 plan Lorg/apache/cassandra/streaming/StreamPlan;
4 22 4 endpointToRanges Ljava/util/Map<Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;>;
10 19 5 entry Ljava/util/Map$Entry<Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;>;
11 19 7 remote Ljava/net/InetAddress;
14 19 8 endpointDetails Ljava/util/List<Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;>;
16 17 9 details Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;
Signature: (Ljava/util/Set<Ljava/net/InetAddress;>;[Lorg/apache/cassandra/streaming/StreamEventHandler;)Lorg/apache/cassandra/streaming/StreamResultFuture;
MethodParameters:
Name Flags
toIgnore
listeners
public void onSuccess(org.apache.cassandra.streaming.StreamState);
descriptor: (Lorg/apache/cassandra/streaming/StreamState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.releaseReferences:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 2 1 finalState Lorg/apache/cassandra/streaming/StreamState;
MethodParameters:
Name Flags
finalState
public void onFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.releaseReferences:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 2 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
private void releaseReferences();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.selfRef:()Lorg/apache/cassandra/utils/concurrent/Ref;
invokevirtual org.apache.cassandra.utils.concurrent.Ref.release:()V
3: getstatic org.apache.cassandra.io.sstable.SSTableLoader.$assertionsDisabled:Z
ifne 4
aload 1
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.selfRef:()Lorg/apache/cassandra/utils/concurrent/Ref;
invokevirtual org.apache.cassandra.utils.concurrent.Ref.globalCount:()I
ifeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
2 4 1 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
public void handleStreamEvent(org.apache.cassandra.streaming.StreamEvent);
descriptor: (Lorg/apache/cassandra/streaming/StreamEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.streaming.StreamEvent.eventType:Lorg/apache/cassandra/streaming/StreamEvent$Type;
getstatic org.apache.cassandra.streaming.StreamEvent$Type.STREAM_COMPLETE:Lorg/apache/cassandra/streaming/StreamEvent$Type;
if_acmpne 4
1: aload 1
checkcast org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent
astore 2
start local 2 2: aload 2
getfield org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent.success:Z
ifne 4
3: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.failedHosts:Ljava/util/Set;
aload 2
getfield org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent.peer:Ljava/net/InetAddress;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 5 1 event Lorg/apache/cassandra/streaming/StreamEvent;
2 4 2 se Lorg/apache/cassandra/streaming/StreamEvent$SessionCompleteEvent;
MethodParameters:
Name Flags
event
private java.lang.String names(java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader>);
descriptor: (Ljava/util/Collection;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Collection java.lang.StringBuilder top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
astore 3
start local 3 3: aload 2
aload 3
getfield org.apache.cassandra.io.sstable.format.SSTableReader.descriptor:Lorg/apache/cassandra/io/sstable/Descriptor;
getstatic org.apache.cassandra.io.sstable.Component.DATA:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Descriptor.filenameFor:(Lorg/apache/cassandra/io/sstable/Component;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 6 1 sstables Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
1 6 2 builder Ljava/lang/StringBuilder;
3 4 3 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;)Ljava/lang/String;
MethodParameters:
Name Flags
sstables
public java.util.Set<java.net.InetAddress> getFailedHosts();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.failedHosts:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
Signature: ()Ljava/util/Set<Ljava/net/InetAddress;>;
public void onSuccess(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.apache.cassandra.streaming.StreamState
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader.onSuccess:(Lorg/apache/cassandra/streaming/StreamState;)V
return
LocalVariableTable:
Start End Slot Name Signature
private java.lang.Boolean lambda$0(java.util.Map, java.io.File, org.apache.cassandra.db.Directories$FileType);
descriptor: (Ljava/util/Map;Ljava/io/File;Lorg/apache/cassandra/db/Directories$FileType;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=20, args_size=4
start local 0 start local 2 start local 3 0: aload 2
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 4
start local 4 1: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 5
start local 5 2: aload 3
getstatic org.apache.cassandra.db.Directories$FileType.FINAL:Lorg/apache/cassandra/db/Directories$FileType;
if_acmpeq 5
3: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Skipping temporary file %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
4: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
5: StackMap locals: java.io.File java.lang.String
StackMap stack:
aload 4
aload 5
invokestatic org.apache.cassandra.io.sstable.SSTable.tryComponentFromFilename:(Ljava/io/File;Ljava/lang/String;)Lorg/apache/cassandra/utils/Pair;
astore 6
start local 6 6: aload 6
ifnonnull 7
aconst_null
goto 8
StackMap locals: org.apache.cassandra.utils.Pair
StackMap stack:
7: aload 6
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.Descriptor
StackMap locals:
StackMap stack: org.apache.cassandra.io.sstable.Descriptor
8: astore 7
start local 7 9: aload 6
ifnull 10
aload 6
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.Component
getstatic org.apache.cassandra.io.sstable.Component.DATA:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Component.equals:(Ljava/lang/Object;)Z
ifne 11
10: StackMap locals: org.apache.cassandra.io.sstable.Descriptor
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
11: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 7
getstatic org.apache.cassandra.io.sstable.Component.PRIMARY_INDEX:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Descriptor.filenameFor:(Lorg/apache/cassandra/io/sstable/Component;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifne 14
12: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Skipping file %s because index is missing"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
13: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
14: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.client:Lorg/apache/cassandra/io/sstable/SSTableLoader$Client;
aload 7
getfield org.apache.cassandra.io.sstable.Descriptor.cfname:Ljava/lang/String;
invokevirtual org.apache.cassandra.io.sstable.SSTableLoader$Client.getTableMetadata:(Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 8
start local 8 15: aload 8
ifnonnull 18
16: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Skipping file %s: table %s.%s doesn't exist"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.keyspace:Ljava/lang/String;
aastore
dup
iconst_2
aload 7
getfield org.apache.cassandra.io.sstable.Descriptor.cfname:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
17: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
18: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 9
start local 9 19: aload 9
getstatic org.apache.cassandra.io.sstable.Component.DATA:Lorg/apache/cassandra/io/sstable/Component;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
20: aload 9
getstatic org.apache.cassandra.io.sstable.Component.PRIMARY_INDEX:Lorg/apache/cassandra/io/sstable/Component;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
21: new java.io.File
dup
aload 7
getstatic org.apache.cassandra.io.sstable.Component.SUMMARY:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Descriptor.filenameFor:(Lorg/apache/cassandra/io/sstable/Component;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifeq 23
22: aload 9
getstatic org.apache.cassandra.io.sstable.Component.SUMMARY:Lorg/apache/cassandra/io/sstable/Component;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
23: StackMap locals: java.util.Set
StackMap stack:
new java.io.File
dup
aload 7
getstatic org.apache.cassandra.io.sstable.Component.COMPRESSION_INFO:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Descriptor.filenameFor:(Lorg/apache/cassandra/io/sstable/Component;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifeq 25
24: aload 9
getstatic org.apache.cassandra.io.sstable.Component.COMPRESSION_INFO:Lorg/apache/cassandra/io/sstable/Component;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
25: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 7
getstatic org.apache.cassandra.io.sstable.Component.STATS:Lorg/apache/cassandra/io/sstable/Component;
invokevirtual org.apache.cassandra.io.sstable.Descriptor.filenameFor:(Lorg/apache/cassandra/io/sstable/Component;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifeq 27
26: aload 9
getstatic org.apache.cassandra.io.sstable.Component.STATS:Lorg/apache/cassandra/io/sstable/Component;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
27: StackMap locals:
StackMap stack:
aload 7
aload 9
aload 8
invokestatic org.apache.cassandra.io.sstable.format.SSTableReader.openForBatch:(Lorg/apache/cassandra/io/sstable/Descriptor;Ljava/util/Set;Lorg/apache/cassandra/config/CFMetaData;)Lorg/apache/cassandra/io/sstable/format/SSTableReader;
astore 10
start local 10 28: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.sstables:Ljava/util/List;
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
29: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 12
goto 38
StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Map java.io.File org.apache.cassandra.db.Directories$FileType java.io.File java.lang.String org.apache.cassandra.utils.Pair org.apache.cassandra.io.sstable.Descriptor org.apache.cassandra.config.CFMetaData java.util.Set org.apache.cassandra.io.sstable.format.SSTableReader top java.util.Iterator
StackMap stack:
30: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 11
start local 11 31: aload 11
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 13
start local 13 32: aload 11
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.Collection
astore 14
start local 14 33: aload 10
aload 14
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.getPositionsForRanges:(Ljava/util/Collection;)Ljava/util/List;
astore 15
start local 15 34: aload 10
aload 14
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.estimatedKeysForRanges:(Ljava/util/Collection;)J
lstore 16
start local 16 35: aload 10
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.ref:()Lorg/apache/cassandra/utils/concurrent/Ref;
astore 18
start local 18 36: new org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections
dup
aload 18
aload 15
lload 16
lconst_0
invokespecial org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections.<init>:(Lorg/apache/cassandra/utils/concurrent/Ref;Ljava/util/List;JJ)V
astore 19
start local 19 37: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.streamingDetails:Lcom/google/common/collect/Multimap;
aload 13
aload 19
invokeinterface com.google.common.collect.Multimap.put:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
end local 19 end local 18 end local 16 end local 15 end local 14 end local 13 end local 11 38: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 30
39: aload 10
invokevirtual org.apache.cassandra.io.sstable.format.SSTableReader.releaseSummary:()V
end local 10 40: goto 43
41: StackMap locals: org.apache.cassandra.io.sstable.SSTableLoader java.util.Map java.io.File org.apache.cassandra.db.Directories$FileType java.io.File java.lang.String org.apache.cassandra.utils.Pair org.apache.cassandra.io.sstable.Descriptor org.apache.cassandra.config.CFMetaData java.util.Set
StackMap stack: java.io.IOException
astore 10
start local 10 42: aload 0
getfield org.apache.cassandra.io.sstable.SSTableLoader.outputHandler:Lorg/apache/cassandra/utils/OutputHandler;
ldc "Skipping file %s, error opening it: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
dup
iconst_1
aload 10
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.OutputHandler.output:(Ljava/lang/String;)V
end local 10 43: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 this Lorg/apache/cassandra/io/sstable/SSTableLoader;
0 44 2 file Ljava/io/File;
0 44 3 type Lorg/apache/cassandra/db/Directories$FileType;
1 44 4 dir Ljava/io/File;
2 44 5 name Ljava/lang/String;
6 44 6 p Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/io/sstable/Descriptor;Lorg/apache/cassandra/io/sstable/Component;>;
9 44 7 desc Lorg/apache/cassandra/io/sstable/Descriptor;
15 44 8 metadata Lorg/apache/cassandra/config/CFMetaData;
19 44 9 components Ljava/util/Set<Lorg/apache/cassandra/io/sstable/Component;>;
28 40 10 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
31 38 11 entry Ljava/util/Map$Entry<Ljava/net/InetAddress;Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;>;
32 38 13 endpoint Ljava/net/InetAddress;
33 38 14 tokenRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
34 38 15 sstableSections Ljava/util/List<Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;>;
35 38 16 estimatedKeys J
36 38 18 ref Lorg/apache/cassandra/utils/concurrent/Ref<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
37 38 19 details Lorg/apache/cassandra/streaming/StreamSession$SSTableStreamingSections;
42 43 10 e Ljava/io/IOException;
Exception table:
from to target type
27 40 41 Class java.io.IOException
}
SourceFile: "SSTableLoader.java"
NestMembers:
org.apache.cassandra.io.sstable.SSTableLoader$Client
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
public final FileType = org.apache.cassandra.db.Directories$FileType of org.apache.cassandra.db.Directories
public final OnTxnErr = org.apache.cassandra.db.Directories$OnTxnErr of org.apache.cassandra.db.Directories
public abstract Client = org.apache.cassandra.io.sstable.SSTableLoader$Client of org.apache.cassandra.io.sstable.SSTableLoader
public SessionCompleteEvent = org.apache.cassandra.streaming.StreamEvent$SessionCompleteEvent of org.apache.cassandra.streaming.StreamEvent
public final Type = org.apache.cassandra.streaming.StreamEvent$Type of org.apache.cassandra.streaming.StreamEvent
public SSTableStreamingSections = org.apache.cassandra.streaming.StreamSession$SSTableStreamingSections of org.apache.cassandra.streaming.StreamSession