code: public static DataRowsFacade toDataFrame(Schema schema, JavaRDD<List<Writable>> data) {
          JavaSparkContext sc = new JavaSparkContext(data.context());
          SQLContext sqlContext = new SQLContext(sc);
          JavaRDD<Row> rows = data.map(new ToRow(schema));
          return dataRows(sqlContext.createDataFrame(rows, fromSchema(schema)));
      }
docs: Creates a data frame from a collection of writables
  rdd given a schema
  
  @param schema the schema to use
  @param data   the data to convert
  @return the dataframe object