All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.sketches.hive.tuple.ArrayOfDoublesState Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
/*
 * Copyright 2016, Yahoo! Inc.
 * Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
 */

package com.yahoo.sketches.hive.tuple;

import org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.AbstractAggregationBuffer;

import com.yahoo.sketches.tuple.ArrayOfDoublesSketch;

abstract class ArrayOfDoublesState extends AbstractAggregationBuffer {

  private int nominalNumEntries_;
  private int numValues_;

  void init(final int numNominalEntries, final int numValues) {
    nominalNumEntries_ = numNominalEntries;
    numValues_ = numValues;
  }

  int getNominalNumEntries() {
    return nominalNumEntries_;
  }

  int getNumValues() {
    return numValues_;
  }

  abstract ArrayOfDoublesSketch getResult();

  abstract void reset();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy