Class DateIndexerHelpers
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.DateIndexerHelpers
Contains some common methods used by various date indexers.
- Since:
- 10.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidindexDateField(Timestamp date, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible) static voidindexLocalDateField(LocalDate localDate, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible)
-
Method Details
-
indexDateField
public static void indexDateField(@Nullable Timestamp date, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible) Indexes aTimestampfor anIssueusing aVisibilityBaseFieldIndexerand aFieldValueCollector. The timestamp is stored as a Unix timestamp. If the timestamp is null then only the sort field in indexed with Long.MAX_VALUE to ensure it is sorted last.- Parameters:
date- - The timestamp to indexcollector- - The FieldValueCollector which stores the sort valuedateField- - The date field to index intosortField- - The sort field to index intovisible- - Whether the field is visible
-
indexLocalDateField
public static void indexLocalDateField(@Nullable LocalDate localDate, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible)
-