title: getAs( ) - Migration Apache Spark 1.6.3 to Apache Spark 2.2.0
body: <p>I recently migrated from Apache Spark 1.6.3 to version 2.2.0 and I have some issues with some functions that have changed</p>
  
  <p>in SPARK 1.6.3 i´m doing that way , </p>
  
  <p>THE CODE IS IN JAVA</p>
  
  <pre><code>    List&lt;String[]&gt; list_id_fk = dfHBaseTemp.toJavaRDD().map(l -&gt; {
              String[] arrayListFK = {"", ""};
              arrayListFK[0] = l.getAs("ID_KEY");
              arrayListFK[1] = l.getAs("ID_TW");
              //System.out.println(arrayListFK[0] +" "+ arrayListFK[1]);
              return arrayListFK;
          }).collect();
  </code></pre>
  
  <p>THE <code>.getAs("ID_KEY")</code>; is not a valid method in Version 2.2.0 !!</p>
  
  <p>Now in SPAKR 2.2.0 should I do ?</p>
  
  <p>Thanks !</p>