public static List<Record> applyFilterAndGet(List<Record> records, List<RecordFilter> filters) {
    if (filters != null && !filters.isEmpty()) {
      return records.stream().filter(r -> filters.stream().allMatch(f -> f.execute(r)))
        .collect(Collectors.toList());
    }
    return records;
  }
Filter records as per the supplied filters,
@param records records to be processed
@param filters List of filters
@return filtered records
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/mode/ModeStrategyUtils.java