title: Reading binary file in Spark Scala
body: <p>I need to extract data from a binary file. </p>
  
  <p>I used <code>binaryRecords</code> and get <code>RDD[Array[Byte]]</code>.</p>
  
  <p>From here I want to parse every record into
  <code>case class (Field1: Int, Filed2 : Short, Field3: Long)</code></p>
  
  <p>How can I do this?</p>