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

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

java.lang.Object
  extended by org.apache.crunch.impl.spark.fn.MapOutputFunction<K,V>
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.PairFunction<Pair<K,V>,ByteArray,byte[]>

public class MapOutputFunction<K,V>
extends Object
implements org.apache.spark.api.java.function.PairFunction<Pair<K,V>,ByteArray,byte[]>

See Also:
Serialized Form

Constructor Summary
MapOutputFunction(SerDe keySerde, SerDe valueSerde)
           
 
Method Summary
 scala.Tuple2<ByteArray,byte[]> call(Pair<K,V> p)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapOutputFunction

public MapOutputFunction(SerDe keySerde,
                         SerDe valueSerde)
Method Detail

call

public scala.Tuple2<ByteArray,byte[]> call(Pair<K,V> p)
                                    throws Exception
Specified by:
call in interface org.apache.spark.api.java.function.PairFunction<Pair<K,V>,ByteArray,byte[]>
Throws:
Exception


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