title: How to use Dataset-based transformation in Spark Streaming?
body: <p>I have a Spark job for Batch mode (using Datasets) which performs some transformation and ingests data into NOSQL. </p>
  
  <p>I get data from other source which is similar in structure as received in batch mode albeit the frequency is very high (mins). Can I use the code I use for batch mode for Streaming? </p>
  
  <p>I am trying to avoid 2 copy of code to deal with similar structure.</p>