Packages

c

org.apache.spark.sql.catalyst.util.rapids

DefaultDateFormatter

class DefaultDateFormatter extends Iso8601DateFormatter

The formatter for dates which doesn't require users to specify a pattern. While formatting, it uses the default pattern DateFormatter.defaultPattern. In parsing, it follows the CAST logic in conversion of strings to Catalyst's DateType.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultDateFormatter
  2. Iso8601DateFormatter
  3. DateTimeFormatterHelper
  4. DateFormatter
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultDateFormatter(locale: Locale, legacyFormat: LegacyDateFormat, isParsing: Boolean)

    locale

    The locale overrides the system locale and is used in formatting.

    legacyFormat

    Defines the formatter used for legacy dates.

    isParsing

    Whether the formatter is used for parsing (true) or for formatting (false).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkFormattedDiff[T <: Date](d: T, legacyFormatFunc: (T) ⇒ String): PartialFunction[Throwable, String]
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  6. def checkInvalidPattern(pattern: String): PartialFunction[Throwable, Nothing]
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  7. def checkLegacyFormatter(pattern: String, tryLegacyFormatter: ⇒ Unit): PartialFunction[Throwable, DateTimeFormatter]
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  8. def checkParsedDiff[T](s: String, legacyParseFunc: (String) ⇒ T): PartialFunction[Throwable, T]
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def format(date: Date): String
    Definition Classes
    Iso8601DateFormatterDateFormatter
  14. def format(days: Int): String
    Definition Classes
    Iso8601DateFormatterDateFormatter
  15. def format(localDate: LocalDate): String
    Definition Classes
    Iso8601DateFormatterDateFormatter
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getOrCreateFormatter(pattern: String, locale: Locale, isParsing: Boolean): DateTimeFormatter
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. lazy val legacyFormatter: DateFormatter
    Attributes
    protected
    Definition Classes
    Iso8601DateFormatter
    Annotations
    @transient()
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def parse(s: String): Int
    Definition Classes
    Iso8601DateFormatterDateFormatter
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toLocalDate(accessor: TemporalAccessor): LocalDate
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  27. def toLocalTime(accessor: TemporalAccessor): LocalTime
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def toZonedDateTime(accessor: TemporalAccessor, zoneId: ZoneId): ZonedDateTime
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  30. def validatePatternString(): Unit
    Definition Classes
    Iso8601DateFormatterDateFormatter
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Iso8601DateFormatter

Inherited from DateTimeFormatterHelper

Inherited from DateFormatter

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped