/** * Applies a function to each item, and groups consecutive items having the same value together. * Contrary to `groupBy`, items from the same group must be already next to each other in the * original collection. Works locally on each partition, so items from different partitions will * never be placed in the same group. */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, ClassTag<U> uClassTag ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, uClassTag); }
/** * Applies a function to each item, and groups consecutive items having the same value together. * Contrary to `groupBy`, items from the same group must be already next to each other in the * original collection. Works locally on each partition, so items from different partitions will * never be placed in the same group. */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, ClassTag<U> uClassTag ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, uClassTag); }
/** * Applies a function to each item, and groups consecutive items having the same value together. * Contrary to `groupBy`, items from the same group must be already next to each other in the * original collection. Works locally on each partition, so items from different partitions will * never be placed in the same group. */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, ClassTag<U> uClassTag ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, uClassTag); }
/** * Applies a function to each item, and groups consecutive items having the same value together. * Contrary to `groupBy`, items from the same group must be already next to each other in the * original collection. Works locally on each partition, so items from different partitions will * never be placed in the same group. */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, ClassTag<U> uClassTag ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, uClassTag); }
/** * Applies a function to each item, and groups consecutive items having the same value together. * Contrary to `groupBy`, items from the same group must be already next to each other in the * original collection. Works locally on each partition, so items from different partitions will * never be placed in the same group. */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, ClassTag<U> uClassTag ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, uClassTag); }
/** @see {@link #spanBy(Function, ClassTag)} */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, Class<U> uClass ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, getClassTag(uClass)); }
/** @see {@link #spanBy(Function, ClassTag)} */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, Class<U> uClass ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, getClassTag(uClass)); }
/** @see {@link #spanBy(Function, ClassTag)} */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, Class<U> uClass ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, getClassTag(uClass)); }
/** @see {@link #spanBy(Function, ClassTag)} */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, Class<U> uClass ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, getClassTag(uClass)); }
/** @see {@link #spanBy(Function, ClassTag)} */ public <U> JavaPairRDD<U, Iterable<Tuple2<K, V>>> spanBy( Function<Tuple2<K, V>, U> function, Class<U> uClass ) { return new PairRDDJavaFunctions<>(rdd()).spanBy(function, getClassTag(uClass)); }