public class ProjectSelectStatisticsMapper extends AbstractCustomFieldStatisticsMapper implements SearchRequestAppender.Factory
customField
Constructor and Description |
---|
ProjectSelectStatisticsMapper(CustomField customField,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
Comparator |
getComparator()
A comparator that can be used to order objects returned by
LuceneFieldSorter.getValueFromLuceneField(String) . |
SearchRequestAppender |
getSearchRequestAppender() |
protected String |
getSearchValue(Object value)
String value to be passed to the search request to construct a new request URL
|
Project |
getValueFromLuceneField(String documentValue)
Convert the lucene document field back to the object that you wish to use to display it.
|
equals, getDocumentConstant, getSearchContextFromValue, getSearchUrlSuffix, hashCode, isFieldAlwaysPartOfAnIssue, isValidValue
public ProjectSelectStatisticsMapper(CustomField customField, ProjectManager projectManager)
protected String getSearchValue(Object value)
AbstractCustomFieldStatisticsMapper
getSearchValue
in class AbstractCustomFieldStatisticsMapper
value
- returned from LuceneFieldSorter.getValueFromLuceneField(java.lang.String)
public Project getValueFromLuceneField(String documentValue)
LuceneFieldSorter
eg. '1000' -> Version 1.
For custom fields, the return value will be passed to
CustomFieldSearcherModuleDescriptor.getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)
getValueFromLuceneField
in interface LuceneFieldSorter
documentValue
- The value of the field in the lucene indexpublic Comparator getComparator()
LuceneFieldSorter
LuceneFieldSorter.getValueFromLuceneField(String)
.
The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
getComparator
in interface LuceneFieldSorter
getComparator
in class AbstractCustomFieldStatisticsMapper
public SearchRequestAppender getSearchRequestAppender()
getSearchRequestAppender
in interface SearchRequestAppender.Factory
Copyright © 2002-2022 Atlassian. All Rights Reserved.