private long[] fillWithZeros(int size) {
    long[] zeros = new long[size];
    for (int i = 0; i < size; i++) {
      zeros[i] = 0L;
    }
    return zeros;
  }
Returns an array of given size initialized with zeros
hbase-server/src/main/java/org/apache/hadoop/hbase/util/RollingStatCalculator.java