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

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

java.lang.Object
  extended by org.apache.crunch.impl.spark.fn.PairMapFunction<K,V,S>
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.Function<scala.Tuple2<K,V>,S>

public class PairMapFunction<K,V,S>
extends Object
implements org.apache.spark.api.java.function.Function<scala.Tuple2<K,V>,S>

See Also:
Serialized Form

Constructor Summary
PairMapFunction(MapFn<Pair<K,V>,S> fn, SparkRuntimeContext ctxt)
           
 
Method Summary
 S call(scala.Tuple2<K,V> kv)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairMapFunction

public PairMapFunction(MapFn<Pair<K,V>,S> fn,
                       SparkRuntimeContext ctxt)
Method Detail

call

public S call(scala.Tuple2<K,V> kv)
       throws Exception
Specified by:
call in interface org.apache.spark.api.java.function.Function<scala.Tuple2<K,V>,S>
Throws:
Exception


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