class org.apache.cassandra.cql3.functions.UDAggregate$2 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.UDAggregate$2
super_class: java.lang.Object
{
private long stateFunctionCount;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long stateFunctionDuration;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.lang.Object state;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private boolean needsInit;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
final org.apache.cassandra.cql3.functions.UDAggregate this$0;
descriptor: Lorg/apache/cassandra/cql3/functions/UDAggregate;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.cql3.functions.UDAggregate);
descriptor: (Lorg/apache/cassandra/cql3/functions/UDAggregate;)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.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/functions/UDAggregate$2;
MethodParameters:
Name Flags
this$0 final
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=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.functions.UDAggregate$2.maybeInit:(Lorg/apache/cassandra/transport/ProtocolVersion;)V
1: invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 2: aload 0
dup
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionCount:J
lconst_1
ladd
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionCount:J
3: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.stateFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
instanceof org.apache.cassandra.cql3.functions.UDFunction
ifeq 8
4: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.stateFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
checkcast org.apache.cassandra.cql3.functions.UDFunction
astore 5
start local 5 5: aload 5
aload 2
invokevirtual org.apache.cassandra.cql3.functions.UDFunction.isCallableWrtNullable:(Ljava/util/List;)Z
ifeq 9
6: aload 0
aload 5
aload 1
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
aload 2
invokevirtual org.apache.cassandra.cql3.functions.UDFunction.executeForAggregate:(Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/lang/Object;Ljava/util/List;)Ljava/lang/Object;
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
end local 5 7: goto 9
8: StackMap locals: long
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "UDAs only support UDFs"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
invokestatic java.lang.System.nanoTime:()J
lload 3
lsub
ldc 1000
ldiv
ladd
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/cql3/functions/UDAggregate$2;
0 11 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
0 11 2 values Ljava/util/List<Ljava/nio/ByteBuffer;>;
2 11 3 startTime J
5 7 5 udf Lorg/apache/cassandra/cql3/functions/UDFunction;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
Signature: (Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
protocolVersion
values
private void maybeInit(org.apache.cassandra.transport.ProtocolVersion);
descriptor: (Lorg/apache/cassandra/transport/ProtocolVersion;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
ifeq 7
1: aload 0
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.initcond:Ljava/nio/ByteBuffer;
ifnull 2
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.stateTypeCodec:Lcom/datastax/driver/core/TypeCodec;
aload 1
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.initcond:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.cql3.functions.UDHelper.deserialize:(Lcom/datastax/driver/core/TypeCodec;Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/nio/ByteBuffer;)Ljava/lang/Object;
goto 3
StackMap locals:
StackMap stack: org.apache.cassandra.cql3.functions.UDAggregate$2
2: aconst_null
StackMap locals: org.apache.cassandra.cql3.functions.UDAggregate$2 org.apache.cassandra.transport.ProtocolVersion
StackMap stack: org.apache.cassandra.cql3.functions.UDAggregate$2 java.lang.Object
3: putfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
4: aload 0
lconst_0
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
5: aload 0
lconst_0
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionCount:J
6: aload 0
iconst_0
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/cql3/functions/UDAggregate$2;
0 8 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
MethodParameters:
Name Flags
protocolVersion
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=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.functions.UDAggregate$2.maybeInit:(Lorg/apache/cassandra/transport/ProtocolVersion;)V
1: ldc "Executed UDA {}: {} call(s) to state function {} in {}\u03BCs"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
invokevirtual org.apache.cassandra.cql3.functions.UDAggregate.name:()Lorg/apache/cassandra/cql3/functions/FunctionName;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionCount:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.stateFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
invokeinterface org.apache.cassandra.cql3.functions.ScalarFunction.name:()Lorg/apache/cassandra/cql3/functions/FunctionName;
aastore
dup
iconst_3
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic org.apache.cassandra.tracing.Tracing.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
2: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.finalFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
ifnonnull 4
3: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.stateTypeCodec:Lcom/datastax/driver/core/TypeCodec;
aload 1
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
invokestatic org.apache.cassandra.cql3.functions.UDFunction.decompose:(Lcom/datastax/driver/core/TypeCodec;Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/lang/Object;)Ljava/nio/ByteBuffer;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.finalFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
instanceof org.apache.cassandra.cql3.functions.UDFunction
ifeq 8
5: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.finalFunction:Lorg/apache/cassandra/cql3/functions/ScalarFunction;
checkcast org.apache.cassandra.cql3.functions.UDFunction
astore 2
start local 2 6: aload 2
aload 1
aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokevirtual org.apache.cassandra.cql3.functions.UDFunction.executeForAggregate:(Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/lang/Object;Ljava/util/List;)Ljava/lang/Object;
astore 3
start local 3 7: aload 0
getfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
getfield org.apache.cassandra.cql3.functions.UDAggregate.returnTypeCodec:Lcom/datastax/driver/core/TypeCodec;
aload 1
aload 3
invokestatic org.apache.cassandra.cql3.functions.UDFunction.decompose:(Lcom/datastax/driver/core/TypeCodec;Lorg/apache/cassandra/transport/ProtocolVersion;Ljava/lang/Object;)Ljava/nio/ByteBuffer;
areturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "UDAs only support UDFs"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/cql3/functions/UDAggregate$2;
0 9 1 protocolVersion Lorg/apache/cassandra/transport/ProtocolVersion;
6 8 2 udf Lorg/apache/cassandra/cql3/functions/UDFunction;
7 8 3 result Ljava/lang/Object;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
protocolVersion
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/functions/UDAggregate$2;
}
SourceFile: "UDAggregate.java"
EnclosingMethod: org.apache.cassandra.cql3.functions.UDAggregate.newAggregate:()Lorg/apache/cassandra/cql3/functions/AggregateFunction$Aggregate;
NestHost: org.apache.cassandra.cql3.functions.UDAggregate
InnerClasses:
public abstract Aggregate = org.apache.cassandra.cql3.functions.AggregateFunction$Aggregate of org.apache.cassandra.cql3.functions.AggregateFunction
org.apache.cassandra.cql3.functions.UDAggregate$2