class org.apache.cassandra.cql3.functions.AggregateFcts$5$1 implements org.apache.cassandra.cql3.functions.AggregateFunction$Aggregate
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.cql3.functions.AggregateFcts$5$1
super_class: java.lang.Object
{
private java.math.BigInteger sum;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
final org.apache.cassandra.cql3.functions.AggregateFcts$5 this$1;
descriptor: Lorg/apache/cassandra/cql3/functions/AggregateFcts$5;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.cql3.functions.AggregateFcts$5);
descriptor: (Lorg/apache/cassandra/cql3/functions/AggregateFcts$5;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.this$1:Lorg/apache/cassandra/cql3/functions/AggregateFcts$5;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.sum:Ljava/math/BigInteger;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/functions/AggregateFcts$5$1;
MethodParameters:
Name Flags
this$0 final
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.count:I
1: aload 0
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.sum:Ljava/math/BigInteger;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/functions/AggregateFcts$5$1;
public java.nio.ByteBuffer compute(org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Lorg/apache/cassandra/transport/ProtocolVersion;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.count:I
ifne 2
1: getstatic org.apache.cassandra.db.marshal.IntegerType.instance:Lorg/apache/cassandra/db/marshal/IntegerType;
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
invokevirtual org.apache.cassandra.db.marshal.IntegerType.decompose:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.marshal.IntegerType.instance:Lorg/apache/cassandra/db/marshal/IntegerType;
aload 0
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.sum:Ljava/math/BigInteger;
aload 0
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.count:I
i2l
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.divide:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual org.apache.cassandra.db.marshal.IntegerType.decompose:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/functions/AggregateFcts$5$1;
0 3 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
protocolVersion
public void addInput(org.apache.cassandra.transport.ProtocolVersion, java.util.List<java.nio.ByteBuffer>);
descriptor: (Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 3
start local 3 1: aload 3
ifnonnull 3
2: return
3: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.count:I
iconst_1
iadd
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.count:I
4: aload 0
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.this$1:Lorg/apache/cassandra/cql3/functions/AggregateFcts$5;
invokevirtual org.apache.cassandra.cql3.functions.AggregateFcts$5.argTypes:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.db.marshal.AbstractType
aload 3
invokevirtual org.apache.cassandra.db.marshal.AbstractType.compose:(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
checkcast java.math.BigInteger
astore 4
start local 4 5: aload 0
aload 0
getfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.sum:Ljava/math/BigInteger;
aload 4
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
putfield org.apache.cassandra.cql3.functions.AggregateFcts$5$1.sum:Ljava/math/BigInteger;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/cql3/functions/AggregateFcts$5$1;
0 7 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
0 7 2 values Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 7 3 value Ljava/nio/ByteBuffer;
5 7 4 number Ljava/math/BigInteger;
Signature: (Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
protocolVersion
values
}
SourceFile: "AggregateFcts.java"
EnclosingMethod: org.apache.cassandra.cql3.functions.AggregateFcts$5.newAggregate:()Lorg/apache/cassandra/cql3/functions/AggregateFunction$Aggregate;
NestHost: org.apache.cassandra.cql3.functions.AggregateFcts
InnerClasses:
org.apache.cassandra.cql3.functions.AggregateFcts$5
org.apache.cassandra.cql3.functions.AggregateFcts$5$1
public abstract Aggregate = org.apache.cassandra.cql3.functions.AggregateFunction$Aggregate of org.apache.cassandra.cql3.functions.AggregateFunction