src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/HistogramInvoker.java
public HistogramInvoker invoke() {
    histogram = callSingleGroupingHistogram(histType);
    switch (histType) {
      case "user":
        binLabels = "User Names";
        break;
      case "group":
        binLabels = "Group Names";
        break;
      case "accessTime":
        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange));
        binLabels = "Last Accessed Time";
        break;
      case "modTime":
        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange));
        binLabels = "Last Modified Time";
        break;
      case "fileSize":
        binLabels = "File Sizes (No Replication Factor)";
        break;
      case "diskspaceConsumed":
        binLabels = "Diskspace Consumed (File Size * Replication Factor)";
        break;
      case "fileReplica":
        binLabels = "File Replication Factor";
        break;
      case "storageType":
        binLabels = "Storage Type Policy";
        break;
      case "memoryConsumed":
        binLabels = "Memory Consumed";
        break;
      case "parentDir":
        histogram.remove("NO_MAPPING");
        binLabels = "Directory Path";
        break;
      case "fileType":
        histogram = removeKeysOnConditional("gt:0", histogram);
        binLabels = "File Type";
        break;
      case "dirQuota":
        histogram = removeKeysOnConditional("gt:0", histogram);
        binLabels = "Directory Path";
        break;
      default:
        throwIllegalHistogramException();
        break;
    }
    histogram = removeKeysOnConditional(histogramConditionsStr, histogram);
    histogram = sliceTopBottom(top, bottom, histogram);
    histogram = sortHistogramAscDesc(sortAscending, sortDescending, histogram);
    return this;
  }
/**
   * Performs the histogram function and stores data within this same object.
   *
   * @return the current object with histogram and labelling complete
   */
Performs the histogram function and stores data within this same object.
@return the current object with histogram and labelling complete
Performs the histogram function and stores data within this same object . @return the current object with histogram and labelling complete
public HistogramInvoker invoke() {
    histogram = callSingleGroupingHistogram(histType);
    switch (histType) {
      case "user":
        binLabels = "User Names";
        break;
      case "group":
        binLabels = "Group Names";
        break;
      case "accessTime":
        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange));
        binLabels = "Last Accessed Time";
        break;
      case "modTime":
        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange));
        binLabels = "Last Modified Time";
        break;
      case "fileSize":
        binLabels = "File Sizes (No Replication Factor)";
        break;
      case "diskspaceConsumed":
        binLabels = "Diskspace Consumed (File Size * Replication Factor)";
        break;
      case "fileReplica":
        binLabels = "File Replication Factor";
        break;
      case "storageType":
        binLabels = "Storage Type Policy";
        break;
      case "memoryConsumed":
        binLabels = "Memory Consumed";
        break;
      case "parentDir":
        histogram.remove("NO_MAPPING");
        binLabels = "Directory Path";
        break;
      case "fileType":
        histogram = removeKeysOnConditional("gt:0", histogram);
        binLabels = "File Type";
        break;
      case "dirQuota":
        histogram = removeKeysOnConditional("gt:0", histogram);
        binLabels = "Directory Path";
        break;
      default:
        throwIllegalHistogramException();
        break;
    }
    histogram = removeKeysOnConditional(histogramConditionsStr, histogram);
    histogram = sliceTopBottom(top, bottom, histogram);
    histogram = sortHistogramAscDesc(sortAscending, sortDescending, histogram);
    return this;
  }
public HistogramInvoker invoke ( ) { histogram = callSingleGroupingHistogram ( histType ) ; switch ( histType ) { case "user" : binLabels = "User Names" ; break ; case "group" : binLabels = "Group Names" ; break ; case "accessTime" : histogram = Histograms . orderByKeyOrder ( histogram , TimeHistogram . getKeys ( timeRange ) ) ; binLabels = "Last Accessed Time" ; break ; case "modTime" : histogram = Histograms . orderByKeyOrder ( histogram , TimeHistogram . getKeys ( timeRange ) ) ; binLabels = "Last Modified Time" ; break ; case "fileSize" : binLabels = "File Sizes (No Replication Factor)" ; break ; case "diskspaceConsumed" : binLabels = "Diskspace Consumed (File Size * Replication Factor)" ; break ; case "fileReplica" : binLabels = "File Replication Factor" ; break ; case "storageType" : binLabels = "Storage Type Policy" ; break ; case "memoryConsumed" : binLabels = "Memory Consumed" ; break ; case "parentDir" : histogram . remove ( "NO_MAPPING" ) ; binLabels = "Directory Path" ; break ; case "fileType" : histogram = removeKeysOnConditional ( "gt:0" , histogram ) ; binLabels = "File Type" ; break ; case "dirQuota" : histogram = removeKeysOnConditional ( "gt:0" , histogram ) ; binLabels = "Directory Path" ; break ; default : throwIllegalHistogramException ( ) ; break ; } histogram = removeKeysOnConditional ( histogramConditionsStr , histogram ) ; histogram = sliceTopBottom ( top , bottom , histogram ) ; histogram = sortHistogramAscDesc ( sortAscending , sortDescending , histogram ) ; return this ; }
Performs the histogram function and stores data within this same object.
Performs the histogram function and stores data within this same object .