spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akshat Aranya <aara...@gmail.com>
Subject Mapping SchemaRDD/Row to JSON
Date Mon, 10 Nov 2014 19:12:46 GMT
Hi,

Does there exist a way to serialize Row objects to JSON.  In the absence of
such a way, is the right way to go:

* get hold of schema using SchemaRDD.schema
* Iterate through each individual Row as a Seq and use the schema to
convert values in the row to JSON types.

Thanks,
Akshat

Mime
View raw message