class org.apache.cassandra.io.util.ChecksummedRebufferer extends org.apache.cassandra.io.util.BufferManagingRebufferer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.io.util.ChecksummedRebufferer
super_class: org.apache.cassandra.io.util.BufferManagingRebufferer
{
private final org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator validator;
descriptor: Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.apache.cassandra.io.util.ChannelProxy, org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator);
descriptor: (Lorg/apache/cassandra/io/util/ChannelProxy;Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;)V
flags: (0x0000)
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.apache.cassandra.io.util.SimpleChunkReader
dup
aload 1
aload 1
invokevirtual org.apache.cassandra.io.util.ChannelProxy.size:()J
getstatic org.apache.cassandra.io.compress.BufferType.ON_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
aload 2
getfield org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.chunkSize:I
invokespecial org.apache.cassandra.io.util.SimpleChunkReader.<init>:(Lorg/apache/cassandra/io/util/ChannelProxy;JLorg/apache/cassandra/io/compress/BufferType;I)V
invokespecial org.apache.cassandra.io.util.BufferManagingRebufferer.<init>:(Lorg/apache/cassandra/io/util/ChunkReader;)V
1: aload 0
aload 2
putfield org.apache.cassandra.io.util.ChecksummedRebufferer.validator:Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/io/util/ChecksummedRebufferer;
0 3 1 channel Lorg/apache/cassandra/io/util/ChannelProxy;
0 3 2 validator Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
MethodParameters:
Name Flags
channel
validator
public org.apache.cassandra.io.util.Rebufferer$BufferHolder rebuffer(long);
descriptor: (J)Lorg/apache/cassandra/io/util/Rebufferer$BufferHolder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.offset:J
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
i2l
ladd
lcmp
ifeq 2
1: aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.validator:Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
lload 1
invokevirtual org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.seek:(J)V
2: StackMap locals:
StackMap stack:
aload 0
aload 0
lload 1
invokevirtual org.apache.cassandra.io.util.ChecksummedRebufferer.alignedPosition:(J)J
putfield org.apache.cassandra.io.util.ChecksummedRebufferer.offset:J
3: aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.source:Lorg/apache/cassandra/io/util/ChunkReader;
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.offset:J
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.io.util.ChunkReader.readChunk:(JLjava/nio/ByteBuffer;)V
4: aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.validator:Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.ByteBufferUtil.getArray:(Ljava/nio/ByteBuffer;)[B
iconst_0
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.validate:([BII)V
5: goto 8
6: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 7: new org.apache.cassandra.io.util.CorruptFileException
dup
aload 3
aload 0
invokevirtual org.apache.cassandra.io.util.ChecksummedRebufferer.channel:()Lorg/apache/cassandra/io/util/ChannelProxy;
invokevirtual org.apache.cassandra.io.util.ChannelProxy.filePath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.util.CorruptFileException.<init>:(Ljava/lang/Exception;Ljava/lang/String;)V
athrow
end local 3 8: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/io/util/ChecksummedRebufferer;
0 9 1 desiredPosition J
7 8 3 e Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.IOException
MethodParameters:
Name Flags
desiredPosition
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.source:Lorg/apache/cassandra/io/util/ChunkReader;
invokeinterface org.apache.cassandra.io.util.ChunkReader.close:()V
1: goto 5
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
3: aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.validator:Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
invokevirtual org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.close:()V
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.validator:Lorg/apache/cassandra/io/util/DataIntegrityMetadata$ChecksumValidator;
invokevirtual org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.close:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/io/util/ChecksummedRebufferer;
Exception table:
from to target type
0 2 2 any
long alignedPosition(long);
descriptor: (J)J
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
i2l
ldiv
aload 0
getfield org.apache.cassandra.io.util.ChecksummedRebufferer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
i2l
lmul
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/ChecksummedRebufferer;
0 1 1 desiredPosition J
MethodParameters:
Name Flags
desiredPosition
}
SourceFile: "ChecksummedRebufferer.java"
InnerClasses:
public ChecksumValidator = org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator of org.apache.cassandra.io.util.DataIntegrityMetadata
public abstract BufferHolder = org.apache.cassandra.io.util.Rebufferer$BufferHolder of org.apache.cassandra.io.util.Rebufferer