Examples of FlatMapIndexFn


Examples of org.apache.crunch.impl.spark.fn.FlatMapIndexFn

  private JavaRDDLike<?, ?> getJavaRDDLikeInternal(SparkRuntime runtime) {
    JavaRDDLike<?, ?> parentRDD = ((SparkCollection) getOnlyParent()).getJavaRDDLike(runtime);
    fn.configure(runtime.getConfiguration());
    return parentRDD.mapPartitionsWithIndex(
        new FlatMapIndexFn(fn, parentRDD instanceof JavaPairRDD, runtime.getRuntimeContext()),
        false);
  }
View Full Code Here

Examples of org.apache.crunch.impl.spark.fn.FlatMapIndexFn

    }
    JavaRDDLike<?, ?> parentRDD = ((SparkCollection) getOnlyParent()).getJavaRDDLike(runtime);
    fn.configure(runtime.getConfiguration());
    return parentRDD
        .mapPartitionsWithIndex(
            new FlatMapIndexFn(fn, parentRDD instanceof JavaPairRDD, runtime.getRuntimeContext()),
            false)
        .mapPartitionsToPair(new CrunchPairTuple2());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.