Class LocalDateFieldSorter
- All Implemented Interfaces:
FieldValueLoader<LocalDate>
LocalDate values by reading a document field.
Platform-specific class intended for the Lucene search platform only.
Jira Search exposes a common API backed by multiple search engines. This class bypasses that abstraction and couples callers to Lucene internals.
Using this class when the runtime search platform is not Lucene (e.g. OpenSearch) may produce incorrect results or failures.
For platform-agnostic usage, use LocalDateFieldValueLoader
which works across all supported search platforms.
Internal use only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfield()Get the field name that this field is indexed with.A comparator by which the resulting values should be ordered when multiple values are present.Convert the document field back to the object that you wish to use to display it.
-
Constructor Details
-
LocalDateFieldSorter
-
-
Method Details
-
field
Description copied from interface:FieldValueLoaderGet the field name that this field is indexed with.- Specified by:
fieldin interfaceFieldValueLoader<LocalDate>
-
loadValue
Description copied from interface:FieldValueLoaderConvert the document field back to the object that you wish to use to display it.e.g. '1000' -> Version 1.
For custom fields, the return value will be passed to
CustomFieldSearcherModuleDescriptor.getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)- Specified by:
loadValuein interfaceFieldValueLoader<LocalDate>- Parameters:
documentValue- The value of the field in the index or null if no values exist- Returns:
- The value that will be passed to the display
-
getComparator
Description copied from interface:FieldValueLoaderA comparator by which the resulting values should be ordered when multiple values are present.The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
- Specified by:
getComparatorin interfaceFieldValueLoader<LocalDate>
-