@PublicSpi public interface StatisticsMapper<T> extends LuceneFieldSorter<T>
Any 'field' that implements this is capable of having a statistic calculated from it.
FilterStatisticsValuesGenerator| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
getSearchUrlSuffix(T value,
SearchRequest searchRequest)
Get a suffix for the issue navigator, which allows for filtering on this value.
|
boolean |
isFieldAlwaysPartOfAnIssue()
Check if the field is always part of an issues data.
|
boolean |
isValidValue(T value)
Check whether this value is valid for this particular search.
|
equals, getComparator, getDocumentConstant, getValueFromLuceneField, hashCodeboolean isValidValue(T value)
value - This is the same value that will be returned from LuceneFieldSorter.getValueFromLuceneField(String)boolean isFieldAlwaysPartOfAnIssue()
SearchRequest getSearchUrlSuffix(T value, SearchRequest searchRequest)
eg. a project field would return a SearchRequest object who's getQueryString method will produce
pid=10240
Note that values returned from implementations should return values that are URLEncoded.
value - This is the same value that will be returned from LuceneFieldSorter.getValueFromLuceneField(String)searchRequest - is the search request that should be used as the base of the newly generated
SearchRequest object. If this parameter is null then the return type will also be null.URLEncoder.encode(String)Copyright © 2002-2018 Atlassian. All Rights Reserved.