This project has retired. For details please refer to its Attic page.
FlatMapPairDoFn (Apache Crunch 0.11.0 API)

org.apache.crunch.impl.spark.fn
Class FlatMapPairDoFn<K,V,T>

java.lang.Object
  extended by org.apache.crunch.impl.spark.fn.FlatMapPairDoFn<K,V,T>
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.FlatMapFunction<Iterator<scala.Tuple2<K,V>>,T>

public class FlatMapPairDoFn<K,V,T>
extends Object
implements org.apache.spark.api.java.function.FlatMapFunction<Iterator<scala.Tuple2<K,V>>,T>

See Also:
Serialized Form

Constructor Summary
FlatMapPairDoFn(DoFn<Pair<K,V>,T> fn, SparkRuntimeContext ctxt)
           
 
Method Summary
 Iterable<T> call(Iterator<scala.Tuple2<K,V>> input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatMapPairDoFn

public FlatMapPairDoFn(DoFn<Pair<K,V>,T> fn,
                       SparkRuntimeContext ctxt)
Method Detail

call

public Iterable<T> call(Iterator<scala.Tuple2<K,V>> input)
                 throws Exception
Specified by:
call in interface org.apache.spark.api.java.function.FlatMapFunction<Iterator<scala.Tuple2<K,V>>,T>
Throws:
Exception


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.