title: How to update Row/column value in a Apache Spark DataFrame?
body: <p>I have an ordered Spark <code>DataFrame</code>and I would like to change a few rows while iterating it using the following code but it seems there is not any way to update Row object.</p>
  <pre><code>orderedDataFrame.foreach(new Function1&lt;Row,BoxedUnit&gt;(){
  
  @Override
  public BoxedUnit apply(Row v1) {
  // How do I change Row here? 
  // I want to change column no 2 using v1.get(2)
  // also what is BoxedUnit, and how do I use it
  return null;
  }
  });
  </code></pre>
  <p>Also above code is giving compilation error saying:</p>
  <blockquote>
  <p>myclassname is not abstract and it does not override abstract method apply$mcVj$sp(long) in scala Function 1</p>
  </blockquote>
  <p>I am new to Spark. I am using 1.4.0 release.</p>