public abstract class AggregationStrategy<T extends AggregatedUsageRecord<T,B>,B extends SingleUsageRecord> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
aggregationField |
protected T |
t |
| Constructor and Description |
|---|
AggregationStrategy(T t) |
| Modifier and Type | Method and Description |
|---|---|
T |
aggregate(B record) |
T |
aggregate(T record) |
protected void |
cleanExtraFields() |
protected String |
commonFieldHash(B record) |
T |
getAggregatedUsageRecord() |
protected boolean |
isAggregable(UsageRecord record) |
protected abstract T |
reallyAggregate(T t) |
protected T extends AggregatedUsageRecord<T,B> t
public AggregationStrategy(T t)
protected void cleanExtraFields()
public T getAggregatedUsageRecord()
protected boolean isAggregable(UsageRecord record)
protected abstract T reallyAggregate(T t) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionspublic T aggregate(T record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionspublic T aggregate(B record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionsCopyright © 2015. All Rights Reserved.