public class org.apache.cassandra.io.compress.SnappyCompressor implements org.apache.cassandra.io.compress.ICompressor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.io.compress.SnappyCompressor
super_class: java.lang.Object
{
public static final org.apache.cassandra.io.compress.SnappyCompressor instance;
descriptor: Lorg/apache/cassandra/io/compress/SnappyCompressor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.cassandra.io.compress.SnappyCompressor
dup
invokespecial org.apache.cassandra.io.compress.SnappyCompressor.<init>:()V
putstatic org.apache.cassandra.io.compress.SnappyCompressor.instance:Lorg/apache/cassandra/io/compress/SnappyCompressor;
1: ldc Lorg/apache/cassandra/io/compress/SnappyCompressor;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.io.compress.SnappyCompressor.logger:Lorg/slf4j/Logger;
2: invokestatic org.apache.cassandra.io.compress.SnappyCompressor.isAvailable:()Z
ifne 4
3: getstatic org.apache.cassandra.io.compress.SnappyCompressor.logger:Lorg/slf4j/Logger;
ldc "Cannot initialize native Snappy library. Compression on new sstables will be disabled."
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
public static org.apache.cassandra.io.compress.SnappyCompressor create(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Lorg/apache/cassandra/io/compress/SnappyCompressor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.xerial.snappy.Snappy.getNativeLibraryVersion:()Ljava/lang/String;
pop
1: getstatic org.apache.cassandra.io.compress.SnappyCompressor.instance:Lorg/apache/cassandra/io/compress/SnappyCompressor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 compressionOptions Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/io/compress/SnappyCompressor;
MethodParameters:
Name Flags
compressionOptions
public static boolean isAvailable();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokestatic org.apache.cassandra.io.compress.SnappyCompressor.create:(Ljava/util/Map;)Lorg/apache/cassandra/io/compress/SnappyCompressor;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 3: aload 0
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
4: iconst_0
ireturn
end local 0 5: StackMap locals:
StackMap stack: java.lang.Error
pop
6: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
3 5 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
0 1 5 Class java.lang.NoClassDefFoundError
0 1 5 Class org.xerial.snappy.SnappyError
0 1 5 Class java.lang.UnsatisfiedLinkError
public java.util.Set<java.lang.String> supportedOptions();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public int initialCompressedBufferLength(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.xerial.snappy.Snappy.maxCompressedLength:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
0 1 1 chunkLength I
MethodParameters:
Name Flags
chunkLength
public void compress(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
istore 3
start local 3 1: aload 1
aload 2
invokestatic org.xerial.snappy.Snappy.compress:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
pop
2: aload 2
aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
4: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
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/compress/SnappyCompressor;
0 6 1 input Ljava/nio/ByteBuffer;
0 6 2 output Ljava/nio/ByteBuffer;
1 6 3 dlimit I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
output
public int uncompress(byte[], int, int, byte[], int);
descriptor: ([BII[BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
iload 2
iload 3
aload 4
iload 5
invokestatic org.xerial.snappy.Snappy.rawUncompress:([BIILjava/lang/Object;I)I
ireturn
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 1 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
0 1 1 input [B
0 1 2 inputOffset I
0 1 3 inputLength I
0 1 4 output [B
0 1 5 outputOffset I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
inputOffset
inputLength
output
outputOffset
public void uncompress(java.nio.ByteBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
istore 3
start local 3 1: aload 1
aload 2
invokestatic org.xerial.snappy.Snappy.uncompress:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
pop
2: aload 2
aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
4: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
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/compress/SnappyCompressor;
0 6 1 input Ljava/nio/ByteBuffer;
0 6 2 output Ljava/nio/ByteBuffer;
1 6 3 dlimit I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
output
public org.apache.cassandra.io.compress.BufferType preferredBufferType();
descriptor: ()Lorg/apache/cassandra/io/compress/BufferType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.io.compress.BufferType.OFF_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
public boolean supports(org.apache.cassandra.io.compress.BufferType);
descriptor: (Lorg/apache/cassandra/io/compress/BufferType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.apache.cassandra.io.compress.BufferType.OFF_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/compress/SnappyCompressor;
0 2 1 bufferType Lorg/apache/cassandra/io/compress/BufferType;
MethodParameters:
Name Flags
bufferType
}
SourceFile: "SnappyCompressor.java"