Class DateTimeField

java.lang.Object
com.atlassian.jira.search.field.DateTimeField
All Implemented Interfaces:
Field, NumericField, TypedField<Date>

@PublicApi public final class DateTimeField extends Object implements NumericField
Field for date time. Date is stored internally as milliseconds since epoch. Dates before the 1st of January 1970 UTC are stored as a negative number.
Since:
10.6
  • Method Details

    • accept

      public <T> T accept(FieldVisitor<T> visitor)
      Specified by:
      accept in interface Field
    • get

      public List<Date> get(Document document)
      Description copied from interface: TypedField
      Get field value from the document
      Specified by:
      get in interface TypedField<Date>
      Returns:
      the field value
    • builder

      public static DateTimeField.Builder builder(String fieldName)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • name

      public String name()
      Specified by:
      name in interface Field
    • isIndexed

      public boolean isIndexed()
      Specified by:
      isIndexed in interface Field
    • hasDocValues

      public boolean hasDocValues()
      Specified by:
      hasDocValues in interface Field
    • isStored

      public boolean isStored()
      Specified by:
      isStored in interface Field
    • isMultiValued

      public boolean isMultiValued()
      Description copied from interface: Field
      Whether the field is multiValued.
      Specified by:
      isMultiValued in interface Field
      Returns:
      boolean
    • subfields

      public List<Field> subfields()
      Specified by:
      subfields in interface Field
    • getValueType

      public Class<Date> getValueType()
      Description copied from interface: TypedField
      The java class of the value that this field holds
      Specified by:
      getValueType in interface TypedField<T>
      Returns:
      the java class of the value that this field holds
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringBuilder

      protected org.apache.commons.lang3.builder.ToStringBuilder toStringBuilder()