public class org.apache.cassandra.hints.CompressedHintsWriter extends org.apache.cassandra.hints.HintsWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.hints.CompressedHintsWriter
super_class: org.apache.cassandra.hints.HintsWriter
{
static final int METADATA_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
private final org.apache.cassandra.io.compress.ICompressor compressor;
descriptor: Lorg/apache/cassandra/io/compress/ICompressor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.nio.ByteBuffer compressionBuffer;
descriptor: Ljava/nio/ByteBuffer;
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/hints/CompressedHintsWriter;
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.CompressedHintsWriter.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.File, org.apache.cassandra.hints.HintsDescriptor, java.io.File, java.nio.channels.FileChannel, int, java.util.zip.CRC32);
descriptor: (Ljava/io/File;Lorg/apache/cassandra/hints/HintsDescriptor;Ljava/io/File;Ljava/nio/channels/FileChannel;ILjava/util/zip/CRC32;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
iload 5
aload 6
invokespecial org.apache.cassandra.hints.HintsWriter.<init>:(Ljava/io/File;Lorg/apache/cassandra/hints/HintsDescriptor;Ljava/io/File;Ljava/nio/channels/FileChannel;ILjava/util/zip/CRC32;)V
1: aload 0
aconst_null
putfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
2: aload 0
aload 2
invokevirtual org.apache.cassandra.hints.HintsDescriptor.createCompressor:()Lorg/apache/cassandra/io/compress/ICompressor;
putfield org.apache.cassandra.hints.CompressedHintsWriter.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
3: getstatic org.apache.cassandra.hints.CompressedHintsWriter.$assertionsDisabled:Z
ifne 4
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
ifnonnull 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: org.apache.cassandra.hints.CompressedHintsWriter java.io.File org.apache.cassandra.hints.HintsDescriptor java.io.File java.nio.channels.FileChannel int java.util.zip.CRC32
StackMap stack:
return
end local 6 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/hints/CompressedHintsWriter;
0 5 1 directory Ljava/io/File;
0 5 2 descriptor Lorg/apache/cassandra/hints/HintsDescriptor;
0 5 3 file Ljava/io/File;
0 5 4 channel Ljava/nio/channels/FileChannel;
0 5 5 fd I
0 5 6 globalCRC Ljava/util/zip/CRC32;
MethodParameters:
Name Flags
directory
descriptor
file
channel
fd
globalCRC
protected void writeBuffer(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 1: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
iload 2
invokeinterface org.apache.cassandra.io.compress.ICompressor.initialCompressedBufferLength:(I)I
bipush 8
iadd
istore 3
start local 3 2: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
ifnull 3
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 3
if_icmpge 4
3: StackMap locals: int int
StackMap stack:
aload 0
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
invokeinterface org.apache.cassandra.io.compress.ICompressor.preferredBufferType:()Lorg/apache/cassandra/io/compress/BufferType;
iload 3
invokevirtual org.apache.cassandra.io.compress.BufferType.allocate:(I)Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
5: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
bipush 8
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
6: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressor:Lorg/apache/cassandra/io/compress/ICompressor;
aload 1
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokeinterface org.apache.cassandra.io.compress.ICompressor.compress:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V
7: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
bipush 8
isub
istore 4
start local 4 8: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
9: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
iload 2
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
10: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
iload 4
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
pop
11: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
12: aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
iload 4
bipush 8
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
13: aload 0
aload 0
getfield org.apache.cassandra.hints.CompressedHintsWriter.compressionBuffer:Ljava/nio/ByteBuffer;
invokespecial org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/hints/CompressedHintsWriter;
0 15 1 bb Ljava/nio/ByteBuffer;
1 15 2 originalSize I
2 15 3 estimatedSize I
8 15 4 compressedSize I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bb
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.CompressedHintsWriter.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/CompressedHintsWriter;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
public void close();
descriptor: ()V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial org.apache.cassandra.hints.HintsWriter.close:()V
return
LocalVariableTable:
Start End Slot Name Signature
public void fsync();
descriptor: ()V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial org.apache.cassandra.hints.HintsWriter.fsync:()V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CompressedHintsWriter.java"