Added limit for possible values of key function

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-analytics@122261 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-01-15 16:56:29 +00:00
parent dee00d7d63
commit c766e6e93f
1 changed files with 8 additions and 3 deletions

View File

@ -61,7 +61,8 @@ public abstract class AccountingPersistenceBackendQuery {
/**
* Return the list of possible values for a key for a certain usage record type.
* Return the list of possible values for a key for a certain usage record
* type.
* The result are limited to {@link #KEY_VALUES_LIMIT} value.
* If you want a different limit please use the
* {@link #getPossibleValuesForKey(Class, String, int)} function.
@ -76,9 +77,13 @@ public abstract class AccountingPersistenceBackendQuery {
public abstract Set<String> getPossibleValuesForKey(@SuppressWarnings("rawtypes") Class<? extends AggregatedRecord> recordClass, String key) throws Exception;
/**
* Return the list of possible values for a key for a certain usage record type
* Return the list of possible values for a key for a certain usage record
* type.
* The result are limited to limit value. When limit is <= 0 this means
* no limit.
* @param recordClass the usage record type
* @param key the key
* @param key the key
* @param limit limit of result to return.
* @return a set containing the list of possible values
* @throws Exception if fails
*/