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

org.apache.crunch.fn
Class MapKeysFn<K1,K2,V>

java.lang.Object
  extended by org.apache.crunch.DoFn<Pair<K1,V>,Pair<K2,V>>
      extended by org.apache.crunch.fn.MapKeysFn<K1,K2,V>
All Implemented Interfaces:
Serializable

Deprecated. Use PTable.mapKeys(org.apache.crunch.MapFn, org.apache.crunch.types.PType)

public abstract class MapKeysFn<K1,K2,V>
extends DoFn<Pair<K1,V>,Pair<K2,V>>

See Also:
Serialized Form

Constructor Summary
MapKeysFn()
          Deprecated.  
 
Method Summary
abstract  K2 map(K1 k1)
          Deprecated.  
 void process(Pair<K1,V> input, Emitter<Pair<K2,V>> emitter)
          Deprecated. Processes the records from a PCollection.
 
Methods inherited from class org.apache.crunch.DoFn
cleanup, configure, initialize, scaleFactor, setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapKeysFn

public MapKeysFn()
Deprecated. 
Method Detail

process

public void process(Pair<K1,V> input,
                    Emitter<Pair<K2,V>> emitter)
Deprecated. 
Description copied from class: DoFn
Processes the records from a PCollection.

Note: Crunch can reuse a single input record object whose content changes on each DoFn.process(Object, Emitter) method call. This functionality is imposed by Hadoop's Reducer implementation: The framework will reuse the key and value objects that are passed into the reduce, therefore the application should clone the objects they want to keep a copy of.

Specified by:
process in class DoFn<Pair<K1,V>,Pair<K2,V>>
Parameters:
input - The input record.
emitter - The emitter to send the output to

map

public abstract K2 map(K1 k1)
Deprecated. 


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