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

Class AvroDerivedValueDeepCopier<T,S>

  extended by org.apache.crunch.types.avro.AvroDerivedValueDeepCopier<T,S>
All Implemented Interfaces:
Serializable, DeepCopier

public class AvroDerivedValueDeepCopier<T,S>
extends Object
implements DeepCopier

A DeepCopier specific to Avro derived types.

See Also:
Serialized Form

Constructor Summary
AvroDerivedValueDeepCopier(MapFn<T,S> derivedToAvroFn, MapFn<S,T> avroToDerivedFn, AvroType<S> avroBaseType)
Method Summary
 Object deepCopy(Object source)
          Create a deep copy of a value.
 void initialize(org.apache.hadoop.conf.Configuration conf)
          Initialize the deep copier with a job-specific configuration
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AvroDerivedValueDeepCopier(MapFn<T,S> derivedToAvroFn,
                                  MapFn<S,T> avroToDerivedFn,
                                  AvroType<S> avroBaseType)
Method Detail


public void initialize(org.apache.hadoop.conf.Configuration conf)
Description copied from interface: DeepCopier
Initialize the deep copier with a job-specific configuration

Specified by:
initialize in interface DeepCopier
conf - Job-specific configuration


public Object deepCopy(Object source)
Description copied from interface: DeepCopier
Create a deep copy of a value.

Specified by:
deepCopy in interface DeepCopier
source - The value to be copied
The deep copy of the value

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