Class DateDimensionField

    • Method Detail

      • fieldId

        public final String fieldId()

        The custom field ID.

        Returns:
        The custom field ID.
      • column

        public final ColumnIdentifier column()

        The column that is used in the DateDimensionField.

        Returns:
        The column that is used in the DateDimensionField.
      • dateGranularity

        public final TimeGranularity dateGranularity()

        The date granularity of the DateDimensionField. Choose one of the following options:

        • YEAR

        • QUARTER

        • MONTH

        • WEEK

        • DAY

        • HOUR

        • MINUTE

        • SECOND

        • MILLISECOND

        If the service returns an enum value that is not available in the current SDK version, dateGranularity will return TimeGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from dateGranularityAsString().

        Returns:
        The date granularity of the DateDimensionField. Choose one of the following options:

        • YEAR

        • QUARTER

        • MONTH

        • WEEK

        • DAY

        • HOUR

        • MINUTE

        • SECOND

        • MILLISECOND

        See Also:
        TimeGranularity
      • dateGranularityAsString

        public final String dateGranularityAsString()

        The date granularity of the DateDimensionField. Choose one of the following options:

        • YEAR

        • QUARTER

        • MONTH

        • WEEK

        • DAY

        • HOUR

        • MINUTE

        • SECOND

        • MILLISECOND

        If the service returns an enum value that is not available in the current SDK version, dateGranularity will return TimeGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from dateGranularityAsString().

        Returns:
        The date granularity of the DateDimensionField. Choose one of the following options:

        • YEAR

        • QUARTER

        • MONTH

        • WEEK

        • DAY

        • HOUR

        • MINUTE

        • SECOND

        • MILLISECOND

        See Also:
        TimeGranularity
      • hierarchyId

        public final String hierarchyId()

        The custom hierarchy ID.

        Returns:
        The custom hierarchy ID.
      • formatConfiguration

        public final DateTimeFormatConfiguration formatConfiguration()

        The format configuration of the field.

        Returns:
        The format configuration of the field.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)