- Encoders main purpose is the task of performing serialization and deserialization (SerDe)
- Since Spark does not save data as JVM objects, but instead in it’s very own binary format.
- Spark comes with a lot of build in encoders
- An Encoder priovides information about a tables schema, without having to deserialize the whole object.
- Encoders are nessecary when mapping datasets