Class ModeStrategyUtils

java.lang.Object
org.apache.hadoop.hbase.hbtop.mode.ModeStrategyUtils

public final class ModeStrategyUtils extends Object
  • Constructor Details

  • Method Details

    • applyFilterAndGet

      public static List<Record> applyFilterAndGet(List<Record> records, List<RecordFilter> filters)
      Filter records as per the supplied filters,
      Parameters:
      records - records to be processed
      filters - List of filters
      Returns:
      filtered records
    • aggregateRecords

      public static List<Record> aggregateRecords(List<Record> records, Field groupBy)
      Group by records on the basis of supplied groupBy field and Aggregate records using Record.combine(Record)
      Parameters:
      records - records needs to be processed
      groupBy - Field to be used for group by
      Returns:
      aggregated records