Class JavaNewHadoopRDD<K,V>

Object
org.apache.spark.api.java.JavaPairRDD<K,V>
org.apache.spark.api.java.JavaNewHadoopRDD<K,V>
All Implemented Interfaces:
Serializable, JavaRDDLike<scala.Tuple2<K,V>,JavaPairRDD<K,V>>, scala.Serializable

public class JavaNewHadoopRDD<K,V> extends JavaPairRDD<K,V>
See Also:
  • Constructor Details

    • JavaNewHadoopRDD

      public JavaNewHadoopRDD(NewHadoopRDD<K,V> rdd, scala.reflect.ClassTag<K> kClassTag, scala.reflect.ClassTag<V> vClassTag)
  • Method Details

    • kClassTag

      public scala.reflect.ClassTag<K> kClassTag()
      Overrides:
      kClassTag in class JavaPairRDD<K,V>
    • mapPartitionsWithInputSplit

      public <R> JavaRDD<R> mapPartitionsWithInputSplit(Function2<org.apache.hadoop.mapreduce.InputSplit,Iterator<scala.Tuple2<K,V>>,Iterator<R>> f, boolean preservesPartitioning)
      Maps over a partition, providing the InputSplit that was used as the base of the partition.
    • vClassTag

      public scala.reflect.ClassTag<V> vClassTag()
      Overrides:
      vClassTag in class JavaPairRDD<K,V>