```
JavaRDD<Record> dataTable = sc.textFile("hdfs://path/to/files/hdfs").map(
     new Function<String, Record>() {
       public Record call(String line) throws Exception {
         String[] fields = line.split(",");
         Record sd = new Record(fields[0], fields[1], fields[2], fields[3]);
         return sd;
       }
});

 HiveContext hiveContext = new HiveContext(sc);
 DataFrame dataFrameAsORC = hiveContext.applySchema(dataTable, Record.class);
 dataFrameAsORC.saveAsORCFile("/to/hadoop/path");//does not compile

```

I am using Spark 1.4 and I have found this [Spark-JIRA](https://issues.apache.org/jira/browse/SPARK-2883) where it is mentioned that saveAsORCFile support in 1.4 release but I can't find it in JavaDoc of DataFrame.

I am new to Spark.