This project has retired. For details please refer to its
Attic page.
TupleDeepCopier (Apache Crunch 0.9.0 API)
org.apache.crunch.types
Class TupleDeepCopier<T extends Tuple>
java.lang.Object
org.apache.crunch.types.TupleDeepCopier<T>
- Type Parameters:
T
- The type of Tuple implementation being copied
- All Implemented Interfaces:
- Serializable, DeepCopier<T>
public class TupleDeepCopier<T extends Tuple>
- extends Object
- implements DeepCopier<T>
Performs deep copies (based on underlying PType deep copying) of Tuple-based objects.
- See Also:
- Serialized Form
Method Summary |
T |
deepCopy(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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleDeepCopier
public TupleDeepCopier(Class<T> tupleClass,
PType... elementTypes)
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<T extends Tuple>
- Parameters:
conf
- Job-specific configuration
deepCopy
public T deepCopy(T source)
- Description copied from interface:
DeepCopier
- Create a deep copy of a value.
- Specified by:
deepCopy
in interface DeepCopier<T extends Tuple>
- Parameters:
source
- The value to be copied
- Returns:
- The deep copy of the value
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.