anchor.diff:  
   [source,java]
   ----
  -import org.elasticsearch.spark.rdd.java.api.JavaEsSpark;
  +import org.elasticsearch.spark.rdd.api.java.JavaEsSpark;
   import org.elasticsearch.spark.rdd.Metadata;          <1>
   
   import static org.elasticsearch.spark.rdd.Metadata.*; <2>
  
positive.code: [[spark-sql-write-java]]
  ===== Java
  
  In a similar fashion, for Java usage the dedicated package +org.elasticsearch.spark.sql.java.api+ provides similar functionality through the +JavaEsSpark SQL+ :
  
  [source,java]
  ----
  
negative.code: [source,java]
  ----
  import org.apache.spark.sql.api.java.JavaSQLContext;          <1>
  import org.elasticsearch.spark.sql.api.java.JavaEsSparkSQL;   <2>
  ...
  SQLContext sql = new SQLContext(sc);
  
  