public final class org.apache.cassandra.hints.CompressedChecksummedDataInput extends org.apache.cassandra.hints.ChecksummedDataInput
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.hints.CompressedChecksummedDataInput
super_class: org.apache.cassandra.hints.ChecksummedDataInput
{
private final org.apache.cassandra.io.compress.ICompressor compressor;
descriptor: Lorg/apache/cassandra/io/compress/ICompressor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile long filePosition;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long sourcePosition;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.nio.ByteBuffer compressedBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.nio.ByteBuffer metadataBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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/hints/CompressedChecksummedDataInput;
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.hints.CompressedChecksummedDataInput.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.io.util.ChannelProxy, org.apache.cassandra.io.compress.ICompressor, long);
descriptor: (Lorg/apache/cassandra/io/util/ChannelProxy;Lorg/apache/cassandra/io/compress/ICompressor;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokeinterface org.apache.cassandra.io.compress.ICompressor.preferredBufferType:()Lorg/apache/cassandra/io/compress/BufferType;
invokespecial org.apache.cassandra.hints.ChecksummedDataInput.<init>:(Lorg/apache/cassandra/io/util/ChannelProxy;Lorg/apache/cassandra/io/compress/BufferType;)V
1: aload 0
lconst_0
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
2: aload 0
lconst_0
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
3: aload 0
aconst_null
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
4: aload 0
bipush 8
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
5: aload 0
aload 2
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
6: aload 0
aload 0
lload 3
dup2_x1
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
0 8 1 channel Lorg/apache/cassandra/io/util/ChannelProxy;
0 8 2 compressor Lorg/apache/cassandra/io/compress/ICompressor;
0 8 3 filePosition J
MethodParameters:
Name Flags
channel
compressor
filePosition
public boolean isEOF();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
invokevirtual org.apache.cassandra.io.util.ChannelProxy.size:()J
lcmp
ifne 1
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
public long getSourcePosition();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
public org.apache.cassandra.hints.InputPosition getSeekPosition();
descriptor: ()Lorg/apache/cassandra/hints/InputPosition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.hints.CompressedChecksummedDataInput$Position
dup
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.bufferOffset:J
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokespecial org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.<init>:(JJI)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
public void seek(org.apache.cassandra.hints.InputPosition);
descriptor: (Lorg/apache/cassandra/hints/InputPosition;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.apache.cassandra.hints.CompressedChecksummedDataInput$Position
astore 2
start local 2 1: aload 0
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.bufferStart:J
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.bufferOffset:J
2: aload 0
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.sourcePosition:J
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
3: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
iconst_0
invokevirtual java.nio.Buffer.limit:(I)Ljava/nio/Buffer;
pop
4: aload 0
invokevirtual org.apache.cassandra.hints.CompressedChecksummedDataInput.resetCrc:()V
5: aload 0
invokevirtual org.apache.cassandra.hints.CompressedChecksummedDataInput.reBuffer:()V
6: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.bufferPosition:I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
7: getstatic org.apache.cassandra.hints.CompressedChecksummedDataInput.$assertionsDisabled:Z
ifne 8
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.sourcePosition:J
lcmp
ifeq 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals: org.apache.cassandra.hints.CompressedChecksummedDataInput$Position
StackMap stack:
getstatic org.apache.cassandra.hints.CompressedChecksummedDataInput.$assertionsDisabled:Z
ifne 9
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.bufferOffset:J
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.bufferStart:J
lcmp
ifeq 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.hints.CompressedChecksummedDataInput.$assertionsDisabled:Z
ifne 10
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
aload 2
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput$Position.bufferPosition:I
if_icmpeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
0 11 1 p Lorg/apache/cassandra/hints/InputPosition;
1 11 2 pos Lorg/apache/cassandra/hints/CompressedChecksummedDataInput$Position;
MethodParameters:
Name Flags
p
protected void readBuffer();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.sourcePosition:J
1: aload 0
invokevirtual org.apache.cassandra.hints.CompressedChecksummedDataInput.isEOF:()Z
ifeq 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
4: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
invokevirtual org.apache.cassandra.io.util.ChannelProxy.read:(Ljava/nio/ByteBuffer;J)I
pop
5: aload 0
dup
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
ldc 8
ladd
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
6: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
7: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 1
start local 1 8: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.metadataBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 2
start local 2 9: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
ifnull 10
iload 2
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
if_icmple 14
10: StackMap locals: int int
StackMap stack:
iload 2
iload 2
bipush 20
idiv
iadd
istore 3
start local 3 11: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
ifnull 13
12: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.memory.BufferPool.put:(Ljava/nio/ByteBuffer;)V
13: StackMap locals: int
StackMap stack:
aload 0
iload 3
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
invokeinterface org.apache.cassandra.io.compress.ICompressor.preferredBufferType:()Lorg/apache/cassandra/io/compress/BufferType;
invokestatic org.apache.cassandra.utils.memory.BufferPool.get:(ILorg/apache/cassandra/io/compress/BufferType;)Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
end local 3 14: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
15: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
iload 2
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
16: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
invokevirtual org.apache.cassandra.io.util.ChannelProxy.read:(Ljava/nio/ByteBuffer;J)I
pop
17: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
18: aload 0
dup
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
iload 2
i2l
ladd
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.filePosition:J
19: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmpge 23
20: iload 1
iload 1
bipush 20
idiv
iadd
istore 3
start local 3 21: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.memory.BufferPool.put:(Ljava/nio/ByteBuffer;)V
22: aload 0
iload 3
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
invokeinterface org.apache.cassandra.io.compress.ICompressor.preferredBufferType:()Lorg/apache/cassandra/io/compress/BufferType;
invokestatic org.apache.cassandra.utils.memory.BufferPool.get:(ILorg/apache/cassandra/io/compress/BufferType;)Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
end local 3 23: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
24: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
iload 1
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
25: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.io.compress.ICompressor.uncompress:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V
26: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
27: goto 30
28: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 29: new org.apache.cassandra.io.FSReadError
dup
aload 3
aload 0
invokevirtual org.apache.cassandra.hints.CompressedChecksummedDataInput.getPath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.FSReadError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
end local 3 30: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
8 31 1 uncompressedSize I
9 31 2 compressedSize I
11 14 3 bufferSize I
21 23 3 bufferSize I
29 30 3 e Ljava/io/IOException;
Exception table:
from to target type
25 27 28 Class java.io.IOException
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.hints.CompressedChecksummedDataInput.compressedBuffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.memory.BufferPool.put:(Ljava/nio/ByteBuffer;)V
1: aload 0
invokespecial org.apache.cassandra.hints.ChecksummedDataInput.close:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
public static org.apache.cassandra.hints.ChecksummedDataInput upgradeInput(org.apache.cassandra.hints.ChecksummedDataInput, org.apache.cassandra.io.compress.ICompressor);
descriptor: (Lorg/apache/cassandra/hints/ChecksummedDataInput;Lorg/apache/cassandra/io/compress/ICompressor;)Lorg/apache/cassandra/hints/ChecksummedDataInput;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.hints.ChecksummedDataInput.getPosition:()J
lstore 2
start local 2 1: aload 0
invokevirtual org.apache.cassandra.hints.ChecksummedDataInput.close:()V
2: new org.apache.cassandra.hints.CompressedChecksummedDataInput
dup
new org.apache.cassandra.io.util.ChannelProxy
dup
aload 0
invokevirtual org.apache.cassandra.hints.ChecksummedDataInput.getPath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.util.ChannelProxy.<init>:(Ljava/lang/String;)V
aload 1
lload 2
invokespecial org.apache.cassandra.hints.CompressedChecksummedDataInput.<init>:(Lorg/apache/cassandra/io/util/ChannelProxy;Lorg/apache/cassandra/io/compress/ICompressor;J)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 input Lorg/apache/cassandra/hints/ChecksummedDataInput;
0 3 1 compressor Lorg/apache/cassandra/io/compress/ICompressor;
1 3 2 position J
MethodParameters:
Name Flags
input
compressor
org.apache.cassandra.io.compress.ICompressor getCompressor();
descriptor: ()Lorg/apache/cassandra/io/compress/ICompressor;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.CompressedChecksummedDataInput.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/CompressedChecksummedDataInput;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "CompressedChecksummedDataInput.java"
NestMembers:
org.apache.cassandra.hints.CompressedChecksummedDataInput$Position
InnerClasses:
Position = org.apache.cassandra.hints.CompressedChecksummedDataInput$Position of org.apache.cassandra.hints.CompressedChecksummedDataInput