Scala interface for read/write RecordIO data format