encoder
Main method of API, which gives you seamless integration with Spark: It creates encoder for any given supported type T
Supported types are data classes, primitives, and Lists, Maps and Arrays containing them
Return
generated encoder
Parameters
T
type, supported by Spark