This project has retired. For details please refer to its
Attic page.
FlatMapIndexFn (Apache Crunch 0.11.0 API)
org.apache.crunch.impl.spark.fn
Class FlatMapIndexFn<S,T>
java.lang.Object
org.apache.crunch.impl.spark.fn.FlatMapIndexFn<S,T>
- All Implemented Interfaces:
- Serializable, org.apache.spark.api.java.function.Function2<Integer,Iterator,Iterator<T>>
public class FlatMapIndexFn<S,T>
- extends Object
- implements org.apache.spark.api.java.function.Function2<Integer,Iterator,Iterator<T>>
- See Also:
- Serialized Form
FlatMapIndexFn
public FlatMapIndexFn(DoFn<S,T> fn,
boolean convertInput,
SparkRuntimeContext ctxt)
call
public Iterator<T> call(Integer partitionId,
Iterator input)
throws Exception
- Specified by:
call
in interface org.apache.spark.api.java.function.Function2<Integer,Iterator,Iterator<T>>
- Throws:
Exception
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.