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

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

java.lang.Object
  extended by org.apache.crunch.impl.spark.fn.PairMapIterableFunction<K,V,S,T>
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.PairFunction<Pair<K,List<V>>,S,Iterable<T>>

public class PairMapIterableFunction<K,V,S,T>
extends Object
implements org.apache.spark.api.java.function.PairFunction<Pair<K,List<V>>,S,Iterable<T>>

See Also:
Serialized Form

Constructor Summary
PairMapIterableFunction(MapFn<Pair<K,List<V>>,Pair<S,Iterable<T>>> fn, SparkRuntimeContext runtimeContext)
           
 
Method Summary
 scala.Tuple2<S,Iterable<T>> call(Pair<K,List<V>> input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairMapIterableFunction

public PairMapIterableFunction(MapFn<Pair<K,List<V>>,Pair<S,Iterable<T>>> fn,
                               SparkRuntimeContext runtimeContext)
Method Detail

call

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


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