public class org.apache.cassandra.db.DiskBoundaries
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.DiskBoundaries
super_class: java.lang.Object
{
public final java.util.List<org.apache.cassandra.db.Directories$DataDirectory> directories;
descriptor: Ljava/util/List;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/db/Directories$DataDirectory;>;
public final com.google.common.collect.ImmutableList<org.apache.cassandra.db.PartitionPosition> positions;
descriptor: Lcom/google/common/collect/ImmutableList;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lcom/google/common/collect/ImmutableList<Lorg/apache/cassandra/db/PartitionPosition;>;
final long ringVersion;
descriptor: J
flags: (0x0010) ACC_FINAL
final int directoriesVersion;
descriptor: I
flags: (0x0010) ACC_FINAL
private volatile boolean isInvalid;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
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/DiskBoundaries;
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.DiskBoundaries.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.db.Directories$DataDirectory[], int);
descriptor: ([Lorg/apache/cassandra/db/Directories$DataDirectory;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
ldc -1
iload 2
invokespecial org.apache.cassandra.db.DiskBoundaries.<init>:([Lorg/apache/cassandra/db/Directories$DataDirectory;Ljava/util/List;JI)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/DiskBoundaries;
0 2 1 directories [Lorg/apache/cassandra/db/Directories$DataDirectory;
0 2 2 diskVersion I
MethodParameters:
Name Flags
directories
diskVersion
public void <init>(org.apache.cassandra.db.Directories$DataDirectory[], java.util.List<org.apache.cassandra.db.PartitionPosition>, long, );
descriptor: ([Lorg/apache/cassandra/db/Directories$DataDirectory;Ljava/util/List;JI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.cassandra.db.DiskBoundaries.isInvalid:Z
2: aload 0
aload 1
ifnonnull 3
aconst_null
goto 4
StackMap locals: org.apache.cassandra.db.DiskBoundaries org.apache.cassandra.db.Directories$DataDirectory[] java.util.List long int
StackMap stack: org.apache.cassandra.db.DiskBoundaries
3: aload 1
invokestatic com.google.common.collect.ImmutableList.copyOf:([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
StackMap locals: org.apache.cassandra.db.DiskBoundaries org.apache.cassandra.db.Directories$DataDirectory[] java.util.List long int
StackMap stack: org.apache.cassandra.db.DiskBoundaries com.google.common.collect.ImmutableList
4: putfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
5: aload 0
aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack: org.apache.cassandra.db.DiskBoundaries
6: aload 2
invokestatic com.google.common.collect.ImmutableList.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
StackMap locals: org.apache.cassandra.db.DiskBoundaries org.apache.cassandra.db.Directories$DataDirectory[] java.util.List long int
StackMap stack: org.apache.cassandra.db.DiskBoundaries com.google.common.collect.ImmutableList
7: putfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
8: aload 0
lload 3
putfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
9: aload 0
iload 5
putfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
10: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/DiskBoundaries;
0 11 1 directories [Lorg/apache/cassandra/db/Directories$DataDirectory;
0 11 2 positions Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;
0 11 3 ringVersion J
0 11 5 diskVersion I
Signature: ([Lorg/apache/cassandra/db/Directories$DataDirectory;Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;JI)V
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
directories
positions
ringVersion
diskVersion
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 3
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.db.DiskBoundaries
astore 2
start local 2 4: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
aload 2
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
lcmp
ifeq 5
iconst_0
ireturn
5: StackMap locals: org.apache.cassandra.db.DiskBoundaries
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
aload 2
getfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
if_icmpeq 6
iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
aload 2
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifne 7
iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
ifnull 8
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
aload 2
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
invokevirtual com.google.common.collect.ImmutableList.equals:(Ljava/lang/Object;)Z
goto 10
StackMap locals:
StackMap stack:
8: aload 2
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
ifnonnull 9
iconst_1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/db/DiskBoundaries;
0 11 1 o Ljava/lang/Object;
4 11 2 that Lorg/apache/cassandra/db/DiskBoundaries;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
ifnull 1
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
invokeinterface java.util.List.hashCode:()I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: bipush 31
iload 1
imul
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
ifnull 4
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
invokevirtual com.google.common.collect.ImmutableList.hashCode:()I
goto 5
StackMap locals: org.apache.cassandra.db.DiskBoundaries int
StackMap stack: int
4: iconst_0
StackMap locals: org.apache.cassandra.db.DiskBoundaries int
StackMap stack: int int
5: iadd
istore 1
6: bipush 31
iload 1
imul
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
bipush 32
lushr
lxor
l2i
iadd
istore 1
7: bipush 31
iload 1
imul
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
iadd
istore 1
8: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/DiskBoundaries;
3 9 1 result I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "DiskBoundaries{directories="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ", positions="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ", ringVersion="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
4: ldc ", directoriesVersion="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
5: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/DiskBoundaries;
public boolean isOutOfDate();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.isInvalid:Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.db.BlacklistedDirectories.getDirectoriesVersion:()I
istore 1
start local 1 3: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.getTokenMetadata:()Lorg/apache/cassandra/locator/TokenMetadata;
invokevirtual org.apache.cassandra.locator.TokenMetadata.getRingVersion:()J
lstore 2
start local 2 4: iload 1
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directoriesVersion:I
if_icmpne 6
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
ldc -1
lcmp
ifeq 5
lload 2
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.ringVersion:J
lcmp
ifne 6
StackMap locals: int long
StackMap stack:
5: iconst_0
ireturn
StackMap locals:
StackMap stack:
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/DiskBoundaries;
3 7 1 currentDiskVersion I
4 7 2 currentRingVersion J
public void invalidate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.cassandra.db.DiskBoundaries.isInvalid:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/db/DiskBoundaries;
public int getDiskIndex(org.apache.cassandra.io.sstable.format.SSTableReader);
descriptor: (Lorg/apache/cassandra/io/sstable/format/SSTableReader;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
ifnonnull 2
1: aload 0
aload 1
invokevirtual org.apache.cassandra.db.DiskBoundaries.getBoundariesFromSSTableDirectory:(Lorg/apache/cassandra/io/sstable/format/SSTableReader;)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.positions:Lcom/google/common/collect/ImmutableList;
aload 1
getfield org.apache.cassandra.io.sstable.format.SSTableReader.first:Lorg/apache/cassandra/db/DecoratedKey;
invokestatic java.util.Collections.binarySearch:(Ljava/util/List;Ljava/lang/Object;)I
istore 2
start local 2 3: getstatic org.apache.cassandra.db.DiskBoundaries.$assertionsDisabled:Z
ifne 4
iload 2
iflt 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: int
StackMap stack:
iload 2
ineg
iconst_1
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/DiskBoundaries;
0 5 1 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
3 5 2 pos I
MethodParameters:
Name Flags
sstable
private int getBoundariesFromSSTableDirectory(org.apache.cassandra.io.sstable.format.SSTableReader);
descriptor: (Lorg/apache/cassandra/io/sstable/format/SSTableReader;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectory
astore 3
start local 3 3: aload 1
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.getAbsolutePath:()Ljava/lang/String;
aload 3
getfield org.apache.cassandra.db.Directories$DataDirectory.location:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: iload 2
ireturn
end local 3 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/db/DiskBoundaries;
0 8 1 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
1 7 2 i I
3 5 3 directory Lorg/apache/cassandra/db/Directories$DataDirectory;
MethodParameters:
Name Flags
sstable
public org.apache.cassandra.db.Directories$DataDirectory getCorrectDiskForSSTable(org.apache.cassandra.io.sstable.format.SSTableReader);
descriptor: (Lorg/apache/cassandra/io/sstable/format/SSTableReader;)Lorg/apache/cassandra/db/Directories$DataDirectory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.DiskBoundaries.directories:Ljava/util/List;
aload 0
aload 1
invokevirtual org.apache.cassandra.db.DiskBoundaries.getDiskIndex:(Lorg/apache/cassandra/io/sstable/format/SSTableReader;)I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.Directories$DataDirectory
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/DiskBoundaries;
0 1 1 sstable Lorg/apache/cassandra/io/sstable/format/SSTableReader;
MethodParameters:
Name Flags
sstable
}
SourceFile: "DiskBoundaries.java"
InnerClasses:
public DataDirectory = org.apache.cassandra.db.Directories$DataDirectory of org.apache.cassandra.db.Directories