public class io.reactiverse.pgclient.impl.RowResultDecoder<C, R> implements io.reactiverse.pgclient.impl.codec.decoder.RowDecoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.reactiverse.pgclient.impl.RowResultDecoder
super_class: java.lang.Object
{
private final java.util.stream.Collector<io.reactiverse.pgclient.Row, C, R> collector;
descriptor: Ljava/util/stream/Collector;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/stream/Collector<Lio/reactiverse/pgclient/Row;TC;TR;>;
private final boolean singleton;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.BiConsumer<C, io.reactiverse.pgclient.Row> accumulator;
descriptor: Ljava/util/function/BiConsumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/BiConsumer<TC;Lio/reactiverse/pgclient/Row;>;
private io.reactiverse.pgclient.impl.codec.decoder.RowDescription desc;
descriptor: Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private C container;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TC;
private io.reactiverse.pgclient.Row row;
descriptor: Lio/reactiverse/pgclient/Row;
flags: (0x0002) ACC_PRIVATE
void <init>(java.util.stream.Collector<io.reactiverse.pgclient.Row, C, R>, boolean, io.reactiverse.pgclient.impl.codec.decoder.RowDescription);
descriptor: (Ljava/util/stream/Collector;ZLio/reactiverse/pgclient/impl/codec/decoder/RowDescription;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.reactiverse.pgclient.impl.RowResultDecoder.collector:Ljava/util/stream/Collector;
2: aload 0
iload 2
putfield io.reactiverse.pgclient.impl.RowResultDecoder.singleton:Z
3: aload 0
aload 1
invokeinterface java.util.stream.Collector.accumulator:()Ljava/util/function/BiConsumer;
putfield io.reactiverse.pgclient.impl.RowResultDecoder.accumulator:Ljava/util/function/BiConsumer;
4: aload 0
aload 3
putfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
0 6 1 collector Ljava/util/stream/Collector<Lio/reactiverse/pgclient/Row;TC;TR;>;
0 6 2 singleton Z
0 6 3 desc Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
Signature: (Ljava/util/stream/Collector<Lio/reactiverse/pgclient/Row;TC;TR;>;ZLio/reactiverse/pgclient/impl/codec/decoder/RowDescription;)V
MethodParameters:
Name Flags
collector
singleton
desc
public io.reactiverse.pgclient.impl.codec.decoder.RowDescription description();
descriptor: ()Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.size:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
public void decodeRow(int, io.netty.buffer.ByteBuf);
descriptor: (ILio/netty/buffer/ByteBuf;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
ifnonnull 2
1: aload 0
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.collector:Ljava/util/stream/Collector;
invokeinterface java.util.stream.Collector.supplier:()Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
putfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.singleton:Z
ifeq 8
3: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.row:Lio/reactiverse/pgclient/Row;
ifnonnull 6
4: aload 0
new io.reactiverse.pgclient.impl.RowImpl
dup
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
invokespecial io.reactiverse.pgclient.impl.RowImpl.<init>:(Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;)V
putfield io.reactiverse.pgclient.impl.RowResultDecoder.row:Lio/reactiverse/pgclient/Row;
5: goto 9
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.row:Lio/reactiverse/pgclient/Row;
invokeinterface io.reactiverse.pgclient.Row.clear:()V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
new io.reactiverse.pgclient.impl.RowImpl
dup
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
invokespecial io.reactiverse.pgclient.impl.RowImpl.<init>:(Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;)V
putfield io.reactiverse.pgclient.impl.RowResultDecoder.row:Lio/reactiverse/pgclient/Row;
9: StackMap locals:
StackMap stack:
new io.reactiverse.pgclient.impl.RowImpl
dup
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
invokespecial io.reactiverse.pgclient.impl.RowImpl.<init>:(Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;)V
astore 3
start local 3 10: iconst_0
istore 4
start local 4 11: goto 23
12: StackMap locals: io.reactiverse.pgclient.Row int
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.readInt:()I
istore 5
start local 5 13: aconst_null
astore 6
start local 6 14: iload 5
iconst_m1
if_icmpeq 21
15: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.desc:Lio/reactiverse/pgclient/impl/codec/decoder/RowDescription;
invokevirtual io.reactiverse.pgclient.impl.codec.decoder.RowDescription.columns:()[Lio/reactiverse/pgclient/impl/codec/ColumnDesc;
iload 4
aaload
astore 7
start local 7 16: aload 7
invokevirtual io.reactiverse.pgclient.impl.codec.ColumnDesc.getDataFormat:()Lio/reactiverse/pgclient/impl/codec/DataFormat;
getstatic io.reactiverse.pgclient.impl.codec.DataFormat.BINARY:Lio/reactiverse/pgclient/impl/codec/DataFormat;
if_acmpne 19
17: aload 7
invokevirtual io.reactiverse.pgclient.impl.codec.ColumnDesc.getDataType:()Lio/reactiverse/pgclient/impl/codec/DataType;
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 5
aload 2
invokestatic io.reactiverse.pgclient.impl.codec.DataTypeCodec.decodeBinary:(Lio/reactiverse/pgclient/impl/codec/DataType;IILio/netty/buffer/ByteBuf;)Ljava/lang/Object;
astore 6
18: goto 20
19: StackMap locals: int java.lang.Object io.reactiverse.pgclient.impl.codec.ColumnDesc
StackMap stack:
aload 7
invokevirtual io.reactiverse.pgclient.impl.codec.ColumnDesc.getDataType:()Lio/reactiverse/pgclient/impl/codec/DataType;
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 5
aload 2
invokestatic io.reactiverse.pgclient.impl.codec.DataTypeCodec.decodeText:(Lio/reactiverse/pgclient/impl/codec/DataType;IILio/netty/buffer/ByteBuf;)Ljava/lang/Object;
astore 6
20: StackMap locals:
StackMap stack:
aload 2
iload 5
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
end local 7 21: StackMap locals:
StackMap stack:
aload 3
aload 6
invokeinterface io.reactiverse.pgclient.Row.addValue:(Ljava/lang/Object;)Lio/reactiverse/pgclient/Tuple;
pop
end local 6 end local 5 22: iinc 4 1
StackMap locals:
StackMap stack:
23: iload 4
iload 1
if_icmplt 12
end local 4 24: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.accumulator:Ljava/util/function/BiConsumer;
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
aload 3
invokeinterface java.util.function.BiConsumer.accept:(Ljava/lang/Object;Ljava/lang/Object;)V
25: aload 0
dup
getfield io.reactiverse.pgclient.impl.RowResultDecoder.size:I
iconst_1
iadd
putfield io.reactiverse.pgclient.impl.RowResultDecoder.size:I
26: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
0 27 1 len I
0 27 2 in Lio/netty/buffer/ByteBuf;
10 27 3 row Lio/reactiverse/pgclient/Row;
11 24 4 c I
13 22 5 length I
14 22 6 decoded Ljava/lang/Object;
16 21 7 columnDesc Lio/reactiverse/pgclient/impl/codec/ColumnDesc;
MethodParameters:
Name Flags
len
in
R complete();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
ifnonnull 2
1: aload 0
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.collector:Ljava/util/stream/Collector;
invokeinterface java.util.stream.Collector.supplier:()Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
putfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.collector:Ljava/util/stream/Collector;
invokeinterface java.util.stream.Collector.finisher:()Ljava/util/function/Function;
aload 0
getfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
Signature: ()TR;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield io.reactiverse.pgclient.impl.RowResultDecoder.container:Ljava/lang/Object;
1: aload 0
iconst_0
putfield io.reactiverse.pgclient.impl.RowResultDecoder.size:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactiverse/pgclient/impl/RowResultDecoder<TC;TR;>;
}
Signature: <C:Ljava/lang/Object;R:Ljava/lang/Object;>Ljava/lang/Object;Lio/reactiverse/pgclient/impl/codec/decoder/RowDecoder;
SourceFile: "RowResultDecoder.java"