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 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
         0: .line 154
            aload 0 /* this */
            aload 1
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.this$0:Lorg/apache/cassandra/cql3/functions/UDAggregate;
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 160
            aload 0 /* this */
            iconst_1
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
         2: .line 154
            return
        end local 0 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
      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 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
        start local 1 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
        start local 2 // java.util.List values
         0: .line 164
            aload 0 /* this */
            aload 1 /* protocolVersion */
            invokevirtual org.apache.cassandra.cql3.functions.UDAggregate$2.maybeInit:(Lorg/apache/cassandra/transport/ProtocolVersion;)V
         1: .line 166
            invokestatic java.lang.System.nanoTime:()J
            lstore 3 /* startTime */
        start local 3 // long startTime
         2: .line 167
            aload 0 /* this */
            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: .line 168
            aload 0 /* this */
            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: .line 170
            aload 0 /* this */
            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 /* udf */
        start local 5 // org.apache.cassandra.cql3.functions.UDFunction udf
         5: .line 171
            aload 5 /* udf */
            aload 2 /* values */
            invokevirtual org.apache.cassandra.cql3.functions.UDFunction.isCallableWrtNullable:(Ljava/util/List;)Z
            ifeq 9
         6: .line 172
            aload 0 /* this */
            aload 5 /* udf */
            aload 1 /* protocolVersion */
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.functions.UDAggregate$2.state:Ljava/lang/Object;
            aload 2 /* values */
            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 // org.apache.cassandra.cql3.functions.UDFunction udf
         7: .line 173
            goto 9
         8: .line 176
      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: .line 178
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
            invokestatic java.lang.System.nanoTime:()J
            lload 3 /* startTime */
            lsub
            ldc 1000
            ldiv
            ladd
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
        10: .line 179
            return
        end local 3 // long startTime
        end local 2 // java.util.List values
        end local 1 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
        end local 0 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
      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 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
        start local 1 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
         0: .line 183
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
            ifeq 7
         1: .line 185
            aload 0 /* this */
            aload 0 /* this */
            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 /* this */
            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 /* protocolVersion */
            aload 0 /* this */
            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: .line 186
            aload 0 /* this */
            lconst_0
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionDuration:J
         5: .line 187
            aload 0 /* this */
            lconst_0
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.stateFunctionCount:J
         6: .line 188
            aload 0 /* this */
            iconst_0
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
         7: .line 190
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
        end local 0 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
      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 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
        start local 1 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
         0: .line 194
            aload 0 /* this */
            aload 1 /* protocolVersion */
            invokevirtual org.apache.cassandra.cql3.functions.UDAggregate$2.maybeInit:(Lorg/apache/cassandra/transport/ProtocolVersion;)V
         1: .line 197
            ldc "Executed UDA {}: {} call(s) to state function {} in {}\u03BCs"
            iconst_4
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            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 /* this */
            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 /* this */
            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 /* this */
            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: .line 198
            aload 0 /* this */
            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: .line 199
            aload 0 /* this */
            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 /* protocolVersion */
            aload 0 /* this */
            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: .line 201
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            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: .line 203
            aload 0 /* this */
            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 /* udf */
        start local 2 // org.apache.cassandra.cql3.functions.UDFunction udf
         6: .line 204
            aload 2 /* udf */
            aload 1 /* protocolVersion */
            aload 0 /* this */
            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 /* result */
        start local 3 // java.lang.Object result
         7: .line 205
            aload 0 /* this */
            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 /* protocolVersion */
            aload 3 /* result */
            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 // java.lang.Object result
        end local 2 // org.apache.cassandra.cql3.functions.UDFunction udf
         8: .line 207
      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 // org.apache.cassandra.transport.ProtocolVersion protocolVersion
        end local 0 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
      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 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
         0: .line 212
            aload 0 /* this */
            iconst_1
            putfield org.apache.cassandra.cql3.functions.UDAggregate$2.needsInit:Z
         1: .line 213
            return
        end local 0 // org.apache.cassandra.cql3.functions.UDAggregate$2 this
      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