Packages

c

org.apache.spark.sql.catalyst.util

LegacySimpleTimestampFormatter

class LegacySimpleTimestampFormatter extends TimestampFormatter

Linear Supertypes
TimestampFormatter, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LegacySimpleTimestampFormatter
  2. TimestampFormatter
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LegacySimpleTimestampFormatter(pattern: String, zoneId: ZoneId, locale: Locale, lenient: Boolean = true)

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def format(instant: Instant): String
  9. def format(ts: Timestamp): String
  10. def format(us: Long): String
  11. def format(localDateTime: LocalDateTime): String
    Definition Classes
    TimestampFormatter
    Annotations
    @throws( classOf[IllegalStateException] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def parse(s: String): Long

    Parses a timestamp in a string and converts it to microseconds.

    Parses a timestamp in a string and converts it to microseconds.

    s

    - string with timestamp to parse

    returns

    microseconds since epoch.

    Definition Classes
    LegacySimpleTimestampFormatterTimestampFormatter
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    ParseException can be thrown by legacy parser

  19. def parseOptional(s: String): Option[Long]

    Parses a timestamp in a string and converts it to an optional number of microseconds.

    Parses a timestamp in a string and converts it to an optional number of microseconds.

    s

    - string with timestamp to parse

    returns

    An optional number of microseconds since epoch. The result is None on invalid input.

    Definition Classes
    TimestampFormatter
    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    ParseException can be thrown by legacy parser

  20. final def parseWithoutTimeZone(s: String): Long

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time. Zone-id and zone-offset components are ignored.

    Definition Classes
    TimestampFormatter
    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
  21. def parseWithoutTimeZone(s: String, allowTimeZone: Boolean): Long

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to microseconds since Unix Epoch in local time.

    s

    - string with timestamp to parse

    allowTimeZone

    - indicates strict parsing of timezone

    returns

    microseconds since epoch.

    Definition Classes
    TimestampFormatter
    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    IllegalStateException The formatter for timestamp without time zone should always implement this method. The exception should never be hit.

    ParseException can be thrown by legacy parser

  22. def parseWithoutTimeZoneOptional(s: String, allowTimeZone: Boolean): Option[Long]

    Parses a timestamp in a string and converts it to an optional number of microseconds since Unix Epoch in local time.

    Parses a timestamp in a string and converts it to an optional number of microseconds since Unix Epoch in local time.

    s

    - string with timestamp to parse

    allowTimeZone

    - indicates strict parsing of timezone

    returns

    An optional number of microseconds since epoch. The result is None on invalid input.

    Definition Classes
    TimestampFormatter
    Annotations
    @throws( classOf[ParseException] ) @throws( classOf[DateTimeParseException] ) @throws( classOf[DateTimeException] ) @throws( classOf[IllegalStateException] )
    Exceptions thrown

    DateTimeException unable to obtain local date or time

    DateTimeParseException can be thrown by new parser

    IllegalStateException The formatter for timestamp without time zone should always implement this method. The exception should never be hit.

    ParseException can be thrown by legacy parser

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def validatePatternString(checkLegacy: Boolean): Unit

    Validates the pattern string.

    Validates the pattern string.

    checkLegacy

    if true and the pattern is invalid, check whether the pattern is valid for legacy formatters and show hints for using legacy formatter. Otherwise, simply check the pattern string.

    Definition Classes
    LegacySimpleTimestampFormatterTimestampFormatter
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from TimestampFormatter

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped