src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/Helper.java
public static Collection<INode> performFilters(
      NameNodeLoader nameNodeLoader, String set, String[] filters, String[] filterOps) {
    Collection<INode> inodes = nameNodeLoader.getINodeSet(set);

    if (filters == null || filters.length == 0 || filterOps == null || filterOps.length == 0) {
      return inodes;
    }

    return nameNodeLoader.getQueryEngine().combinedFilter(inodes, filters, filterOps);
  }
/**
   * Utility method for performing filtering against NameNode.
   *
   * @param nameNodeLoader the NameNodeLoader
   * @param set whether set of files or dirs
   * @param filters the filter types
   * @param filterOps the filter operations
   * @return the inodes collection that passed the filter
   */
Utility method for performing filtering against NameNode.
Utility method for performing filtering against NameNode .
public static Collection<INode> performFilters(
      NameNodeLoader nameNodeLoader, String set, String[] filters, String[] filterOps) {
    Collection<INode> inodes = nameNodeLoader.getINodeSet(set);
    if (filters == null || filters.length == 0 || filterOps == null || filterOps.length == 0) {
      return inodes;
    }
    return nameNodeLoader.getQueryEngine().combinedFilter(inodes, filters, filterOps);
  }
public static Collection < INode > performFilters ( NameNodeLoader nameNodeLoader , String set , String [ ] filters , String [ ] filterOps ) { Collection < INode > inodes = nameNodeLoader . getINodeSet ( set ) ; if ( filters == null || filters . length == 0 || filterOps == null || filterOps . length == 0 ) { return inodes ; } return nameNodeLoader . getQueryEngine ( ) . combinedFilter ( inodes , filters , filterOps ) ; }
Utility method for performing filtering against NameNode.
Utility method for performing filtering against NameNode .