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

org.apache.crunch.types
Class CollectionDeepCopier<T>

java.lang.Object
  extended by org.apache.crunch.types.CollectionDeepCopier<T>
Type Parameters:
T - The type of Tuple implementation being copied
All Implemented Interfaces:
Serializable, DeepCopier<Collection<T>>

public class CollectionDeepCopier<T>
extends Object
implements DeepCopier<Collection<T>>

Performs deep copies (based on underlying PType deep copying) of Collections.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.crunch.types.DeepCopier
DeepCopier.NoOpDeepCopier<V>
 
Constructor Summary
CollectionDeepCopier(PType<T> elementType)
           
 
Method Summary
 Collection<T> deepCopy(Collection<T> 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

CollectionDeepCopier

public CollectionDeepCopier(PType<T> elementType)
Method Detail

initialize

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<Collection<T>>
Parameters:
conf - Job-specific configuration

deepCopy

public Collection<T> deepCopy(Collection<T> source)
Description copied from interface: DeepCopier
Create a deep copy of a value.

Specified by:
deepCopy in interface DeepCopier<Collection<T>>
Parameters:
source - The value to be copied
Returns:
The deep copy of the value


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