[SPARK-2279] Added emptyRDD method to Java API

Added emptyRDD method to Java API with tests.