Encoder

org.apache.spark.sql.Encoder
See theEncoder companion trait
object Encoder

Companion holding the derived Encoder instances. Because they live here, df.as[T] and spark.createDataset resolve an encoder for any supported T with no explicit import.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Encoder.type

Members list

Value members

Concrete methods

def apply[T](using e: Encoder[T]): Encoder[T]

Givens

Givens

inline given derived[T](using m: ProductOf[T], ct: ClassTag[T]): Encoder[T]
given given_Encoder_Array: Encoder[Array[Byte]]
given given_Encoder_Boolean: Encoder[Boolean]
given given_Encoder_Double: Encoder[Double]
given given_Encoder_Instant: Encoder[Instant]
given given_Encoder_LocalDate: Encoder[LocalDate]
given given_Encoder_LocalDateTime: Encoder[LocalDateTime]
given given_Encoder_String: Encoder[String]
given given_Encoder_Timestamp: Encoder[Timestamp]
given javaBigDecimalEncoder: Encoder[BigDecimal]
given listEncoder[A](using e: Encoder[A]): Encoder[List[A]]
given mapEncoder[K, V](using ek: Encoder[K], ev: Encoder[V]): Encoder[Map[K, V]]
given optionEncoder[A](using e: Encoder[A]): Encoder[Option[A]]
given scalaBigDecimalEncoder: Encoder[BigDecimal]
given seqEncoder[A](using e: Encoder[A]): Encoder[Seq[A]]