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
- Arrow conversion (ArrowUtils)
- Python interop (EvaluatePython)
- Hive formatting (HiveResult)
- Thrift type mapping (SparkExecuteStatementOperation)
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
- Alphabetic
- By Inheritance
- TimeTypeApiOps
- TypeApiOps
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def dataType: DataType
The DataType this Ops instance handles.
The DataType this Ops instance handles.
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- TimeTypeApiOps → TypeApiOps
- def formatExternal(value: Any): Option[String]
Formats an external-type value for Hive output.
Formats an external-type value for Hive output. Most types override this simple version. Types that need different formatting when nested should override the 2-param overload.
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- def formatExternal(value: Any, nested: Boolean): Option[String]
Formats with nesting context.
Formats with nesting context. Default delegates to the simple version.
- Definition Classes
- TypeApiOps
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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
- TimeTypeApiOps → TypeApiOps
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeFromJava: Option[(Any) => Any]
Creates a converter function for Python/Py4J interop.
Creates a converter function for Python/Py4J interop.
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def needConversionInPython: Option[Boolean]
Returns true if values of this type need conversion when passed to/from Python.
Returns true if values of this type need conversion when passed to/from Python.
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def nullSafeConvert(input: Any)(f: PartialFunction[Any, Any]): Any
Null-safe conversion helper.
Null-safe conversion helper. Returns null for null input, applies the partial function for non-null input, and returns null for unmatched values.
- Attributes
- protected
- Definition Classes
- TypeApiOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val t: TimeType
- def thriftTypeName: Option[String]
Returns the Thrift TTypeId name for this type (e.g., "STRING_TYPE").
Returns the Thrift TTypeId name for this type (e.g., "STRING_TYPE").
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- def toArrowType(timeZoneId: String): Option[ArrowType]
Converts this DataType to its Arrow representation.
Converts this DataType to its Arrow representation. Returns None if not supported.
- Definition Classes
- TimeTypeApiOps → TypeApiOps
- 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
- TimeTypeApiOps → TypeApiOps
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)