src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/HistogramTwoLevelInvoker.java
public HistogramTwoLevelInvoker invoke() {
    histogram = callTwoLevelGroupingHistogram();
    switch (groupingOne) {
      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:
        binLabels = "";
        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 HistogramTwoLevelInvoker invoke() {
    histogram = callTwoLevelGroupingHistogram();
    switch (groupingOne) {
      case "user":
        binLabels = "User Names";
        break;
      case "group":
        binLabels = "Group Names";
        break;
      case "accessTime":
        binLabels = "Last Accessed Time";
        break;
      case "modTime":
        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":
        binLabels = "File Type";
        break;
      case "dirQuota":
        binLabels = "Directory Path";
        break;
      default:
        binLabels = "";
        break;
    }
    return this;
  }
public HistogramTwoLevelInvoker invoke ( ) { histogram = callTwoLevelGroupingHistogram ( ) ; switch ( groupingOne ) { case "user" : binLabels = "User Names" ; break ; case "group" : binLabels = "Group Names" ; break ; case "accessTime" : binLabels = "Last Accessed Time" ; break ; case "modTime" : 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" : binLabels = "File Type" ; break ; case "dirQuota" : binLabels = "Directory Path" ; break ; default : binLabels = "" ; break ; } return this ; }
Performs the histogram function and stores data within this same object.
Performs the histogram function and stores data within this same object .
//        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange)); //        histogram = Histograms.orderByKeyOrder(histogram, TimeHistogram.getKeys(timeRange)); //        histogram = removeKeysOnConditional("gt:0", histogram); //        histogram = removeKeysOnConditional("gt:0", histogram); //    histogram = removeKeysOnConditional(histogramConditionsStr, histogram); //    histogram = sliceTopBottom(top, bottom, histogram); //    histogram = sortHistogramAscDesc(sortAscending, sortDescending, histogram);