CatalystSerde
It construct a set of LogicalPlan to serialize the object saved in row(0) to an InternalRow, and deserialize an InternalRow to an object saved in row(0)
Typically, if there is unnecessarily going between the object and serialized (InternalRow), it will optimized away. Please refer to EliminateSerialization.