@Override
  public void terminate(PointCollector collector) throws Exception {
    for (int i = 0; i < count; i++) {
      collector.putInt(i, bucket[i]);
    }
  }
This function is used to calculate the distribution histogram of a single column of numerical
data.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFHistogram.java