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);
}