:: 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.
Annotations
@Experimental()@Evolving()@implicitNotFound(...)
Since
1.6.0
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
Encoder
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Abstract Value Members
abstract defclsTag: ClassTag[T]
A ClassTag that can be used to construct an Array to contain a collection of T.
:: 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