c

org.apache.spark.sql.delta.util

FractionTimestampFormatter

class FractionTimestampFormatter extends Iso8601TimestampFormatter

The formatter parses/formats timestamps according to the pattern yyyy-MM-dd HH:mm:ss.[..fff..] where [..fff..] is a fraction of second up to microsecond resolution. The formatter does not output trailing zeros in the fraction. For example, the timestamp 2019-03-05 15:00:01.123400 is formatted as the string 2019-03-05 15:00:01.1234.

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

Instance Constructors

  1. new FractionTimestampFormatter(timeZone: TimeZone)

    timeZone

    the time zone in which the formatter parses or format timestamps

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()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def format(us: Long): String
  10. lazy val formatter: DateTimeFormatter
    Attributes
    protected
    Definition Classes
    FractionTimestampFormatterIso8601TimestampFormatter
    Annotations
    @transient()
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getOrCreateFormatter(pattern: String, locale: Locale): DateTimeFormatter
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  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
    Iso8601TimestampFormatterTimestampFormatter
    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. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toInstantWithZoneId(temporalAccessor: TemporalAccessor, zoneId: ZoneId): Instant
    Attributes
    protected
    Definition Classes
    DateTimeFormatterHelper
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Iso8601TimestampFormatter

Inherited from DateTimeFormatterHelper

Inherited from TimestampFormatter

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped