Reorganizing code

This commit is contained in:
Luca Frosini 2021-03-22 16:06:50 +01:00
parent 7c676e460d
commit a6455ab4a9
1 changed files with 7 additions and 11 deletions

View File

@ -170,13 +170,6 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
return ret;
}
@Override
public SortedMap<Filter, SortedMap<Calendar, Long>> getSpaceTimeSeries(Class<? extends AggregatedRecord<?, ?>> clz,
TemporalConstraint temporalConstraint, List<Filter> filters, List<String> providersId) throws Exception {
// TODO Auto-generated method stub
return null;
}
protected SortedSet<NumberedFilter> getNumberedValues(Class<? extends AggregatedRecord<?, ?>> clz,
TemporalConstraint temporalConstraint, List<Filter> filters, String key,
String orderingProperty, Integer limit) throws Exception {
@ -251,7 +244,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
SortedMap<NumberedFilter,SortedMap<Calendar,Info>> ret = new TreeMap<>();
SortedSet<NumberedFilter> top = getNumberedValues(clz, temporalConstraint, filters, topKey, orderingProperty, 3);
SortedSet<NumberedFilter> top = getNumberedValues(clz, temporalConstraint, filters, topKey, orderingProperty, 10);
for(NumberedFilter numberedFilter : top) {
filters.add(numberedFilter);
@ -265,19 +258,22 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten
@Override
public List<UsageValue> getUsageValueQuotaTotal(List<UsageValue> listUsage) throws Exception {
// TODO Auto-generated method stub
return null;
}
@Override
public Record getRecord(String recordId, String type) throws Exception {
// TODO Auto-generated method stub
return null;
}
@Override
public SortedMap<Filter, SortedMap<Calendar, Long>> getSpaceTimeSeries(Class<? extends AggregatedRecord<?, ?>> clz,
TemporalConstraint temporalConstraint, List<Filter> filters, List<String> providersId) throws Exception {
return null;
}
@Override
public SortedSet<String> getSpaceProvidersIds() throws Exception {
// TODO Auto-generated method stub
return null;
}