Allow to specify a limit when querying values for suggestion. refs #9943
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-analytics@155177 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
99f2205b63
commit
4a4417212d
|
@ -184,6 +184,7 @@ public interface AccountingPersistenceBackendQuery {
|
|||
* @throws ValueException
|
||||
* @throws Exception
|
||||
*/
|
||||
@Deprecated
|
||||
public SortedSet<NumberedFilter> getFilterValues(
|
||||
Class<? extends AggregatedRecord<?, ?>> clz,
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters,
|
||||
|
@ -196,14 +197,14 @@ public interface AccountingPersistenceBackendQuery {
|
|||
* @param temporalConstraint
|
||||
* @param filters
|
||||
* @param key
|
||||
* @param limit
|
||||
* @param limit use null to get the results with no limits
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public SortedSet<NumberedFilter> getFilterValues(
|
||||
Class<? extends AggregatedRecord<?, ?>> clz,
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters,
|
||||
String key, int limit) throws Exception;
|
||||
String key, Integer limit) throws Exception;
|
||||
|
||||
/**
|
||||
* Return a JsonObject with value
|
||||
|
|
|
@ -250,6 +250,9 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public SortedSet<NumberedFilter> getNextPossibleValuesWithMap(Class<? extends AggregatedRecord<?, ?>> clz,
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters, String key, String orderingProperty)
|
||||
|
@ -275,14 +278,15 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public SortedSet<NumberedFilter> getFilterValues(Class<? extends AggregatedRecord<?, ?>> clz,
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters, String key) throws Exception {
|
||||
return getFilterValues(clz, temporalConstraint, filters, key, 100);
|
||||
return getFilterValues(clz, temporalConstraint, filters, key, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SortedSet<NumberedFilter> getFilterValues(Class<? extends AggregatedRecord<?, ?>> clz,
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters, String key, int limit) throws Exception {
|
||||
TemporalConstraint temporalConstraint, List<Filter> filters, String key, Integer limit) throws Exception {
|
||||
|
||||
return AccountingPersistenceBackendQueryFactory.getInstance().getFilterValues(clz, temporalConstraint, filters,
|
||||
key, limit);
|
||||
|
|
Loading…
Reference in New Issue