Class DateIndexerHelpers

java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.DateIndexerHelpers

public final class DateIndexerHelpers extends Object
Contains some common methods used by various date indexers.
Since:
10.5
  • Method Details

    • indexDateField

      public static void indexDateField(@Nullable Timestamp date, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible)
      Indexes a Timestamp for an Issue using a VisibilityBaseFieldIndexer and a FieldValueCollector. 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 index
      collector - - The FieldValueCollector which stores the sort value
      dateField - - The date field to index into
      sortField - - The sort field to index into
      visible - - Whether the field is visible
    • indexLocalDateField

      public static void indexLocalDateField(@Nullable LocalDate localDate, FieldValueCollector collector, DateTimeField dateField, LongField sortField, boolean visible)