From a6455ab4a9ff7c5b861f7ac5e3967086dfc99c41 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 22 Mar 2021 16:06:50 +0100 Subject: [PATCH] Reorganizing code --- .../AccountingPersistenceQueryPostgreSQL.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java index 02eaa76..2c156a7 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/postgresql/AccountingPersistenceQueryPostgreSQL.java @@ -170,13 +170,6 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten return ret; } - @Override - public SortedMap> getSpaceTimeSeries(Class> clz, - TemporalConstraint temporalConstraint, List filters, List providersId) throws Exception { - // TODO Auto-generated method stub - return null; - } - protected SortedSet getNumberedValues(Class> clz, TemporalConstraint temporalConstraint, List filters, String key, String orderingProperty, Integer limit) throws Exception { @@ -251,7 +244,7 @@ public class AccountingPersistenceQueryPostgreSQL implements AccountingPersisten SortedMap> ret = new TreeMap<>(); - SortedSet top = getNumberedValues(clz, temporalConstraint, filters, topKey, orderingProperty, 3); + SortedSet 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 getUsageValueQuotaTotal(List 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> getSpaceTimeSeries(Class> clz, + TemporalConstraint temporalConstraint, List filters, List providersId) throws Exception { + return null; + } + @Override public SortedSet getSpaceProvidersIds() throws Exception { - // TODO Auto-generated method stub return null; }