From 116eac08c542c6fd410e319980e01c6e682519e1 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 22 Nov 2021 12:48:03 +0100 Subject: [PATCH] Switched form set o list --- .../persistence/AccountingPersistenceBackendQuery.java | 2 +- .../analytics/persistence/AccountingPersistenceQuery.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceBackendQuery.java b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceBackendQuery.java index 268a7f1..47d1e8d 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceBackendQuery.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceBackendQuery.java @@ -72,7 +72,7 @@ public interface AccountingPersistenceBackendQuery { * If the list contains more than one filter with the same key an Exception is thrown * when trying to query. */ - public void setFilters(Set filters); + public void setFilters(List filters); /** * Query the persistence obtaining a Map where the date is the key and the diff --git a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java index 4ed96cd..7e92130 100644 --- a/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java +++ b/src/main/java/org/gcube/accounting/analytics/persistence/AccountingPersistenceQuery.java @@ -60,7 +60,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ protected TemporalConstraint temporalConstraint; protected Set contexts; - protected Set filters; + protected List filters; protected ObjectMapper objectMapper; @@ -90,7 +90,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ } @Override - public void setFilters(Set filters) { + public void setFilters(List filters) { this.filters = filters; accountingPersistenceBackendQuery.setFilters(filters); }