Package org.apache.spark.sql.types
package org.apache.spark.sql.types
-
ClassDescriptionAn
AbstractDataType
that matches any concrete data types.The data type representingArray[Byte]
values.The data type representingBoolean
values.The data type representingByte
values.The data type representing calendar intervals.The base type of all Spark SQL data types.To get/create specific data type, users should use singleton objects and factory methods provided by this class.The date type represents a valid date in the proleptic Gregorian calendar.The type represents day-time intervals of the SQL standard.A mutable implementation of BigDecimal that can hold a Long if values are small enough.AIntegral
evidence parameter for Decimals.Common methods for Decimal evidence parametersAFractional
evidence parameter for Decimals.The data type representingjava.math.BigDecimal
values.The data type representingDouble
values.The data type representingFloat
values.The data type representingInt
values.The data type representingLong
values.The data type for Maps.Metadata is a wrapper over Map[String, Any] that limits the value type to simple ones: Boolean, Long, Double, String, Metadata, Array[Boolean], Array[Long], Array[Double], Array[String], and Array[Metadata].Builder forMetadata
.The data type representingNULL
values.Numeric data types.The data type representingShort
values.::DeveloperApi:: A user-defined type which can be automatically recognized by a SQLContext and registered.The data type representingString
values.A field inside a StructType.AStructType
object can be constructed byThe timestamp without time zone type represents a local time in microsecond precision, which is independent of time zone.The timestamp type represents a time instant in microsecond precision.This object keeps the mappings between user classes and their User Defined Types (UDTs).Rule that defines which upcasts are allow in Spark.UserDefinedType<UserType>The data type for User Defined Types (UDTs).The type represents year-month intervals of the SQL standard.