public final class ModeStrategyUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
ModeStrategyUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
static List<Record> |
applyFilterAndGet(List<Record> records,
List<RecordFilter> filters)
Filter records as per the supplied filters,
|
private ModeStrategyUtils()
public static List<Record> applyFilterAndGet(List<Record> records, List<RecordFilter> filters)
records
- records to be processedfilters
- List of filterspublic static List<Record> aggregateRecords(List<Record> records, Field groupBy)
Record.combine(Record)
records
- records needs to be processedgroupBy
- Field to be used for group byCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.