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