P java engine

In Java there is no implicit conversion from JavaRDD to JavaPairRDD. Upon checking the docs I found there is JavaPairRDD.fromRDD() and JavaPairRDD.fromJavaRDD() for use. The former one needs a class tag for class Q and I'm not sure if we want to change the Manifest to a ClassTag.