Class TupleDeepCopier<T extends Tuple>

  extended by 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

Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.crunch.types.DeepCopier
Constructor Summary
TupleDeepCopier(Class<T> tupleClass, PType... elementTypes)
Method Summary
 T deepCopy(T source)
          Create a deep copy of a value.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TupleDeepCopier(Class<T> tupleClass,
                       PType... elementTypes)
Method Detail


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>
source - The value to be copied
The deep copy of the value

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