public class CountPartitionsFunction<T>
extends java.lang.Object
implements org.apache.spark.api.java.function.Function2<java.lang.Integer,java.util.Iterator<T>,java.util.Iterator<scala.Tuple2<java.lang.Integer,java.lang.Integer>>>
SparkUtils.repartitionBalanceIfRequired(JavaRDD, Repartition, int, int)
Constructor and Description |
---|
CountPartitionsFunction() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<scala.Tuple2<java.lang.Integer,java.lang.Integer>> |
call(java.lang.Integer v1,
java.util.Iterator<T> v2) |
public java.util.Iterator<scala.Tuple2<java.lang.Integer,java.lang.Integer>> call(java.lang.Integer v1, java.util.Iterator<T> v2) throws java.lang.Exception
call
in interface org.apache.spark.api.java.function.Function2<java.lang.Integer,java.util.Iterator<T>,java.util.Iterator<scala.Tuple2<java.lang.Integer,java.lang.Integer>>>
java.lang.Exception