@@ -0,0 +1,525 @@
+package com.oreilly.learningsparkexamples.java;%0Aimport java.io.Serializable;%0A%0A%0Aclass HappyPerson implements Serializable %7B%0A  private String name;%0A  private String favouriteBeverage;%0A  public HappyPerson() %7B%7D%0A  public HappyPerson(String n, String b) %7B%0A    name = n; favouriteBeverage = b;%0A  %7D%0A  public String getName() %7B return name; %7D%0A  public void setName(String n) %7B name = n; %7D%0A  public String getFavouriteBeverage() %7B return favouriteBeverage; %7D%0A  public void setFavouriteBeverage(String b) %7B favouriteBeverage = b; %7D%0A%7D;%0A

Add a JavaBean based Spark SQL example