src/main/java/org/apache/hadoop/hdfs/server/namenode/AbstractQueryEngine.java
@Override // QueryEngine
  public List<Function<Long, Boolean>> createComparisons(String conditionsStr) {
    String[] conditionsArray = conditionsStr.split(";");
    String[][] conditionTuplets = new String[conditionsArray.length][2];

    List<Function<Long, Boolean>> comparisons = new ArrayList<>(conditionTuplets.length);
    for (int i = 0; i < conditionTuplets.length; i++) {
      String tuplet = conditionsArray[i];
      conditionTuplets[i] = tuplet.split(":");
    }

    // Create comparisons.
    for (String[] condition : conditionTuplets) {
      Function<Long, Boolean> longFunction =
          getFilterFunctionForLong(Long.parseLong(condition[1]), condition[0]);
      comparisons.add(longFunction);
    }

    return comparisons;
  }
/**
   * Splits a conditional String and ANDs them together.
   *
   * @param conditionsStr conditional string seperated by semicolons; conditions by colons
   * @return a list of functions that represent the conditional
   */
Splits a conditional String and ANDs them together.
@param conditionsStr conditional string seperated by semicolons; conditions by colons
@return a list of functions that represent the conditional
Splits a conditional String and ANDs them together . @param conditionsStr conditional string seperated by semicolons ; conditions by colons @return a list of functions that represent the conditional
@Override 
  public List<Function<Long, Boolean>> createComparisons(String conditionsStr) {
    String[] conditionsArray = conditionsStr.split(";");
    String[][] conditionTuplets = new String[conditionsArray.length][2];
    List<Function<Long, Boolean>> comparisons = new ArrayList<>(conditionTuplets.length);
    for (int i = 0; i < conditionTuplets.length; i++) {
      String tuplet = conditionsArray[i];
      conditionTuplets[i] = tuplet.split(":");
    }
    for (String[] condition : conditionTuplets) {
      Function<Long, Boolean> longFunction =
          getFilterFunctionForLong(Long.parseLong(condition[1]), condition[0]);
      comparisons.add(longFunction);
    }
    return comparisons;
  }
@ Override public List < Function < Long , Boolean > > createComparisons ( String conditionsStr ) { String [ ] conditionsArray = conditionsStr . split ( ";" ) ; String [ ] [ ] conditionTuplets = new String [ conditionsArray . length ] [ 2 ] ; List < Function < Long , Boolean > > comparisons = new ArrayList < > ( conditionTuplets . length ) ; for ( int i = 0 ; i < conditionTuplets . length ; i ++ ) { String tuplet = conditionsArray [ i ] ; conditionTuplets [ i ] = tuplet . split ( ":" ) ; } for ( String [ ] condition : conditionTuplets ) { Function < Long , Boolean > longFunction = getFilterFunctionForLong ( Long . parseLong ( condition [ 1 ] ) , condition [ 0 ] ) ; comparisons . add ( longFunction ) ; } return comparisons ; }
Splits a conditional String and ANDs them together.
Splits a conditional String and ANDs them together .
// QueryEngine // Create comparisons.