Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark

    Core Spark functionality.

    Core Spark functionality. org.apache.spark.SparkContext serves as the main entry point to Spark, while org.apache.spark.rdd.RDD is the data type representing a distributed collection, and provides most parallel operations.

    In addition, org.apache.spark.rdd.PairRDDFunctions contains operations available only on RDDs of key-value pairs, such as groupByKey and join; org.apache.spark.rdd.DoubleRDDFunctions contains operations available only on RDDs of Doubles; and org.apache.spark.rdd.SequenceFileRDDFunctions contains operations available on RDDs that can be saved as SequenceFiles. These operations are automatically available on any RDD of the right type (e.g. RDD[(Int, Int)] through implicit conversions.

    Java programmers should reference the org.apache.spark.api.java package for Spark programming APIs in Java.

    Classes and methods marked with Experimental are user-facing features which have not been officially adopted by the Spark project. These are subject to change or removal in minor releases.

    Classes and methods marked with Developer API are intended for advanced users want to extend Spark through lower level interfaces. These are subject to changes or removal in minor releases.

    Definition Classes
    apache
  • package sql

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Definition Classes
    spark
  • package types

    Contains a type system for attributes produced by relations, including complex types like structs, arrays and maps.

    Contains a type system for attributes produced by relations, including complex types like structs, arrays and maps.

    Definition Classes
    sql
  • package ops
    Definition Classes
    types
  • TimeTypeApiOps
  • TypeApiOps
c

org.apache.spark.sql.types.ops

TimeTypeApiOps

class TimeTypeApiOps extends TypeApiOps

Client-side (spark-api) operations for TimeType.

This class implements all TypeApiOps methods for the TIME data type:

  • String formatting: uses FractionTimeFormatter for consistent output
  • Row encoding: uses LocalTimeEncoder for java.time.LocalTime

RELATIONSHIP TO TimeTypeOps: TimeTypeOps (in catalyst package) extends this class to inherit client-side operations while adding server-side operations (physical type, literals, etc.).

Source
TimeTypeApiOps.scala
Since

4.2.0

Linear Supertypes
TypeApiOps, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeTypeApiOps
  2. TypeApiOps
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TimeTypeApiOps(t: TimeType)

    t

    The TimeType with precision information

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(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def dataType: DataType

    The DataType this Ops instance handles.

    The DataType this Ops instance handles.

    Definition Classes
    TimeTypeApiOpsTypeApiOps
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def format(v: Any): String

    Formats an internal value as a display string.

    Formats an internal value as a display string.

    Used by CAST to STRING, EXPLAIN output, SHOW commands.

    v

    the internal value (e.g., Long nanoseconds for TimeType)

    returns

    formatted string (e.g., "10:30:45.123456")

    Definition Classes
    TimeTypeApiOpsTypeApiOps
  10. def formatUTF8(v: Any): UTF8String

    Formats an internal value as a UTF8String.

    Formats an internal value as a UTF8String.

    Default implementation wraps format(). Override for performance if needed.

    Definition Classes
    TypeApiOps
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def getEncoder: AgnosticEncoder[_]

    Returns the AgnosticEncoder for this type.

    Returns the AgnosticEncoder for this type.

    Used by RowEncoder for Dataset[T] operations.

    returns

    AgnosticEncoder instance (e.g., LocalTimeEncoder for TimeType)

    Definition Classes
    TimeTypeApiOpsTypeApiOps
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @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
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. val t: TimeType
  20. def toSQLValue(v: Any): String

    Formats an internal value as a SQL literal string.

    Formats an internal value as a SQL literal string.

    v

    the internal value

    returns

    SQL literal string (e.g., "TIME '10:30:00'")

    Definition Classes
    TimeTypeApiOpsTypeApiOps
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

Inherited from TypeApiOps

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped