org.apache.hadoop.mrunit
Class Serialization
java.lang.Object
org.apache.hadoop.mrunit.Serialization
public class Serialization
- extends Object
Method Summary |
static Object |
copy(Object orig,
org.apache.hadoop.conf.Configuration conf)
Creates a new copy of the orig object |
static Object |
copy(Object orig,
Object copy,
org.apache.hadoop.conf.Configuration conf)
Creates a new copy of the orig object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serialization
public Serialization()
copy
public static Object copy(Object orig,
Object copy,
org.apache.hadoop.conf.Configuration conf)
- Creates a new copy of the orig object. Depending on the serialization used,
the serialization class may or may not copy the orig object into the copy
object based on the contract on
org.apache.hadoop.io.serializer.Deserializer.deserialize
- Parameters:
orig
- copy
- if null always returns a new object, if not null may or may not
copy orig into copy depending on what serialization class is usedconf
- specifies the serialization classes to use in io.serializations
- Returns:
- a copy of the orig object
copy
public static Object copy(Object orig,
org.apache.hadoop.conf.Configuration conf)
- Creates a new copy of the orig object
- Parameters:
orig
- conf
- specifies the serialization classes to use in io.serializations
- Returns:
- a new copy of the orig object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.