src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/Helper.java
public static String[] parseFilters(String fullFilterStr) {
    if (fullFilterStr != null && !fullFilterStr.isEmpty()) {
      String[] filterSplits = fullFilterStr.split(",");
      String[] filters = new String[filterSplits.length];
      for (int i = 0; i < filterSplits.length; i++) {
        String[] filterSplit = filterSplits[i].split(":");
        if (filterSplit.length != 3) {
          throw new IllegalArgumentException(
              "Incorrect filter argument format for: '"
                  + filterSplits[i]
                  + "'. Needs to be <filter>:<op>:<filed>.");
        }
        String filter = filterSplit[0];
        filters[i] = filter;
      }
      return filters;
    }
    return null;
  }
/**
   * Parse the set of filters from the URL.
   *
   * @param fullFilterStr the full url filter string
   * @return a set of strings representing the filters
   */
Parse the set of filters from the URL.
@param fullFilterStr the full url filter string
@return a set of strings representing the filters
Parse the set of filters from the URL . @param fullFilterStr the full url filter string @return a set of strings representing the filters
public static String[] parseFilters(String fullFilterStr) {
    if (fullFilterStr != null && !fullFilterStr.isEmpty()) {
      String[] filterSplits = fullFilterStr.split(",");
      String[] filters = new String[filterSplits.length];
      for (int i = 0; i < filterSplits.length; i++) {
        String[] filterSplit = filterSplits[i].split(":");
        if (filterSplit.length != 3) {
          throw new IllegalArgumentException(
              "Incorrect filter argument format for: '"
                  + filterSplits[i]
                  + "'. Needs to be <filter>:<op>:<filed>.");
        }
        String filter = filterSplit[0];
        filters[i] = filter;
      }
      return filters;
    }
    return null;
  }
public static String [ ] parseFilters ( String fullFilterStr ) { if ( fullFilterStr != null && ! fullFilterStr . isEmpty ( ) ) { String [ ] filterSplits = fullFilterStr . split ( "," ) ; String [ ] filters = new String [ filterSplits . length ] ; for ( int i = 0 ; i < filterSplits . length ; i ++ ) { String [ ] filterSplit = filterSplits [ i ] . split ( ":" ) ; if ( filterSplit . length != 3 ) { throw new IllegalArgumentException ( "Incorrect filter argument format for: '" + filterSplits [ i ] + "'. Needs to be <filter>:<op>:<filed>." ) ; } String filter = filterSplit [ 0 ] ; filters [ i ] = filter ; } return filters ; } return null ; }
Parse the set of filters from the URL.
Parse the set of filters from the URL .