googlegenomics/spark-examples — pull request #6 by elmer-garduno (2014-08-13 06:40:40+00:00)
Title: Serialize java api objects

Consolidated transforming from the Java API objects to the serializable version on a VariantBuilder object.

This adds type safety as the values are no longer transformed into a Map, the class constructor is invoked directly using the appropriate types.

Also converted the nullable attributes to Options as it makes it explicit that the value might not be present.

If this approach seems appropriate I can also update the ReadsRDD.