:: Experimental ::
Used to convert a JVM object of type T to and from the internal Spark SQL representation.
Scala
Encoders are generally created automatically through implicits from a SparkSession, or can be
explicitly created by calling static methods on Encoders.
Encoders are not required to be thread-safe and thus they do not need to use locks to guard
against concurrent access if they reuse internal buffers to improve performance.
:: Experimental :: Used to convert a JVM object of type
T
to and from the internal Spark SQL representation.Scala
Encoders are generally created automatically through implicits from a
SparkSession
, or can be explicitly created by calling static methods on Encoders.Java
Encoders are specified by calling static methods on Encoders.
Encoders can be composed into tuples:
Or constructed from Java Beans:
Encoders.bean(MyClass.class);
Implementation
1.6.0