title: Manipulation on Spark Dataframe row
body: <p>I am new in spark, scala etc 
  below is my code</p>
  
  <pre class="lang-scala prettyprint-override"><code>val eventdf = sqlContext.sql("SELECT sensor, data.actor FROM eventTable")
  
  eventdf.map {
    case (r) =&gt; (r.getString(0) + count, r.getString(1), count)
  }.saveToCassandra("caliper", "event", SomeColumns("sensor", "sendtime", "count"))
  </code></pre>
  
  <p>Here , I wanted to perform some manipulation with <code>r.getString(1)</code> and then pass to cassandra for saving.</p>