public class org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator
super_class: java.lang.Object
{
private final org.apache.cassandra.utils.ChecksumType checksumType;
descriptor: Lorg/apache/cassandra/utils/ChecksumType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.io.util.RandomAccessReader reader;
descriptor: Lorg/apache/cassandra/io/util/RandomAccessReader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public final int chunkSize;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final java.lang.String dataFilename;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.apache.cassandra.io.sstable.Descriptor);
descriptor: (Lorg/apache/cassandra/io/sstable/Descriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.apache.cassandra.io.sstable.Descriptor.version:Lorg/apache/cassandra/io/sstable/format/Version;
invokevirtual org.apache.cassandra.io.sstable.format.Version.uncompressedChecksumType:()Lorg/apache/cassandra/utils/ChecksumType;
1: new java.io.File
dup
aload 1
getstatic org.apache.cassandra.io.sstable.Component.CRC: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
invokestatic org.apache.cassandra.io.util.RandomAccessReader.open:(Ljava/io/File;)Lorg/apache/cassandra/io/util/RandomAccessReader;
2: aload 1
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;
invokespecial org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.<init>:(Lorg/apache/cassandra/utils/ChecksumType;Lorg/apache/cassandra/io/util/RandomAccessReader;Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
0 4 1 descriptor Lorg/apache/cassandra/io/sstable/Descriptor;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
descriptor
public void <init>(org.apache.cassandra.utils.ChecksumType, org.apache.cassandra.io.util.RandomAccessReader, java.lang.String);
descriptor: (Lorg/apache/cassandra/utils/ChecksumType;Lorg/apache/cassandra/io/util/RandomAccessReader;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.checksumType:Lorg/apache/cassandra/utils/ChecksumType;
2: aload 0
aload 2
putfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.reader:Lorg/apache/cassandra/io/util/RandomAccessReader;
3: aload 0
aload 3
putfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.dataFilename:Ljava/lang/String;
4: aload 0
aload 2
invokevirtual org.apache.cassandra.io.util.RandomAccessReader.readInt:()I
putfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkSize:I
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
0 6 1 checksumType Lorg/apache/cassandra/utils/ChecksumType;
0 6 2 reader Lorg/apache/cassandra/io/util/RandomAccessReader;
0 6 3 dataFilename Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
checksumType
reader
dataFilename
public void seek(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkStart:(J)J
lstore 3
start local 3 1: aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.reader:Lorg/apache/cassandra/io/util/RandomAccessReader;
lload 3
aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkSize:I
i2l
ldiv
ldc 4
lmul
ldc 4
ladd
invokevirtual org.apache.cassandra.io.util.RandomAccessReader.seek:(J)V
2: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
0 3 1 offset J
1 3 3 start J
MethodParameters:
Name Flags
offset
public long chunkStart(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkSize:I
i2l
ldiv
lstore 3
start local 3 1: lload 3
aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkSize:I
i2l
lmul
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
0 2 1 offset J
1 2 3 startChunk J
MethodParameters:
Name Flags
offset
public void validate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.checksumType:Lorg/apache/cassandra/utils/ChecksumType;
aload 1
iload 2
iload 3
invokevirtual org.apache.cassandra.utils.ChecksumType.of:([BII)J
l2i
istore 4
start local 4 1: aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.reader:Lorg/apache/cassandra/io/util/RandomAccessReader;
invokevirtual org.apache.cassandra.io.util.RandomAccessReader.readInt:()I
istore 5
start local 5 2: iload 4
iload 5
if_icmpeq 4
3: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Corrupted File : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.dataFilename:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int int
StackMap stack:
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 5 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
0 5 1 bytes [B
0 5 2 start I
0 5 3 end I
1 5 4 current I
2 5 5 actual I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
start
end
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.reader:Lorg/apache/cassandra/io/util/RandomAccessReader;
invokevirtual org.apache.cassandra.io.util.RandomAccessReader.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
}
SourceFile: "DataIntegrityMetadata.java"
NestHost: org.apache.cassandra.io.util.DataIntegrityMetadata
InnerClasses:
public ChecksumValidator = org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator of org.apache.cassandra.io.util.DataIntegrityMetadata