public class org.apache.cassandra.transport.FrameCompressor$SnappyCompressor implements org.apache.cassandra.transport.FrameCompressor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.transport.FrameCompressor$SnappyCompressor
super_class: java.lang.Object
{
public static final org.apache.cassandra.transport.FrameCompressor$SnappyCompressor instance;
descriptor: Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: new org.apache.cassandra.transport.FrameCompressor$SnappyCompressor
dup
invokespecial org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.<init>:()V
astore 0
start local 0 1: goto 8
end local 0 2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: aload 1
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
4: aconst_null
astore 0
end local 1 start local 0 5: goto 8
end local 0 6: StackMap locals:
StackMap stack: java.lang.Error
pop
7: aconst_null
astore 0
start local 0 8: StackMap locals: org.apache.cassandra.transport.FrameCompressor$SnappyCompressor
StackMap stack:
aload 0
putstatic org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.instance:Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
end local 0 9: return
LocalVariableTable:
Start End Slot Name Signature
1 2 0 i Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
5 6 0 i Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
8 9 0 i Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
3 5 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
0 1 6 Class java.lang.NoClassDefFoundError
0 1 6 Class org.xerial.snappy.SnappyError
0 1 6 Class java.lang.UnsatisfiedLinkError
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: invokestatic org.xerial.snappy.Snappy.getNativeLibraryVersion:()Ljava/lang/String;
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
public org.apache.cassandra.transport.Frame compress(org.apache.cassandra.transport.Frame);
descriptor: (Lorg/apache/cassandra/transport/Frame;)Lorg/apache/cassandra/transport/Frame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.transport.Frame.body:Lio/netty/buffer/ByteBuf;
invokestatic org.apache.cassandra.transport.CBUtil.readRawBytes:(Lio/netty/buffer/ByteBuf;)[B
astore 2
start local 2 1: getstatic org.apache.cassandra.transport.CBUtil.allocator:Lio/netty/buffer/ByteBufAllocator;
aload 2
arraylength
invokestatic org.xerial.snappy.Snappy.maxCompressedLength:(I)I
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 3
start local 3 2: aload 2
iconst_0
aload 2
arraylength
aload 3
invokevirtual io.netty.buffer.ByteBuf.array:()[B
aload 3
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
invokestatic org.xerial.snappy.Snappy.compress:([BII[BI)I
istore 4
start local 4 3: aload 3
iload 4
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
end local 4 4: goto 11
5: StackMap locals: org.apache.cassandra.transport.FrameCompressor$SnappyCompressor org.apache.cassandra.transport.Frame byte[] io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
astore 4
start local 4 6: aload 3
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
7: aload 4
athrow
end local 4 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
9: aload 1
invokevirtual org.apache.cassandra.transport.Frame.release:()Z
pop
10: aload 5
athrow
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.transport.Frame.release:()Z
pop
12: aload 1
aload 3
invokevirtual org.apache.cassandra.transport.Frame.with:(Lio/netty/buffer/ByteBuf;)Lorg/apache/cassandra/transport/Frame;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/transport/FrameCompressor$SnappyCompressor;
0 13 1 frame Lorg/apache/cassandra/transport/Frame;
1 13 2 input [B
2 13 3 output Lio/netty/buffer/ByteBuf;
3 4 4 written I
6 8 4 e Ljava/lang/Throwable;
Exception table:
from to target type
2 4 5 Class java.lang.Throwable
2 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
frame
public org.apache.cassandra.transport.Frame decompress(org.apache.cassandra.transport.Frame);
descriptor: (Lorg/apache/cassandra/transport/Frame;)Lorg/apache/cassandra/transport/Frame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.cassandra.transport.Frame.body:Lio/netty/buffer/ByteBuf;
invokestatic org.apache.cassandra.transport.CBUtil.readRawBytes:(Lio/netty/buffer/ByteBuf;)[B
astore 2
start local 2 1: aload 2
iconst_0
aload 2
arraylength
invokestatic org.xerial.snappy.Snappy.isValidCompressedBuffer:([BII)Z
ifne 3
2: new org.apache.cassandra.transport.ProtocolException
dup
ldc "Provided frame does not appear to be Snappy compressed"
invokespecial org.apache.cassandra.transport.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: byte[]
StackMap stack:
getstatic org.apache.cassandra.transport.CBUtil.allocator:Lio/netty/buffer/ByteBufAllocator;
aload 2
invokestatic org.xerial.snappy.Snappy.uncompressedLength:([B)I
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 3
start local 3 4: aload 2
iconst_0
aload 2
arraylength
aload 3
invokevirtual io.netty.buffer.ByteBuf.array:()[B
aload 3
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
invokestatic org.xerial.snappy.Snappy.uncompress:([BII[BI)I
istore 4
start local 4 5: aload 3
iload 4
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
end local 4 6: goto 13
7: StackMap locals: org.apache.cassandra.transport.FrameCompressor$SnappyCompressor org.apache.cassandra.transport.Frame byte[] io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
astore 4
start local 4 8: aload 3
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
9: aload 4
athrow
end local 4 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
11: aload 1
invokevirtual org.apache.cassandra.transport.Frame.release:()Z
pop
12: aload 5
athrow
13: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.transport.Frame.release:()Z
pop
14: aload 1
aload 3
invokevirtual org.apache.cassandra.transport.Frame.with:(Lio/netty/buffer/ByteBuf;)Lorg/apache/cassandra/transport/Frame;
areturn
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/transport/FrameCompressor$SnappyCompressor;
0 15 1 frame Lorg/apache/cassandra/transport/Frame;
1 15 2 input [B
4 15 3 output Lio/netty/buffer/ByteBuf;
5 6 4 size I
8 10 4 e Ljava/lang/Throwable;
Exception table:
from to target type
4 6 7 Class java.lang.Throwable
4 10 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
frame
}
SourceFile: "FrameCompressor.java"
NestHost: org.apache.cassandra.transport.FrameCompressor
InnerClasses:
public SnappyCompressor = org.apache.cassandra.transport.FrameCompressor$SnappyCompressor of org.apache.cassandra.transport.FrameCompressor