public class SerializableConfiguration
extends java.lang.Object
implements java.io.Externalizable
Configuration
s to be serialized using Java's standard
serialization mechanisms.Constructor and Description |
---|
SerializableConfiguration() |
SerializableConfiguration(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
get() |
static org.apache.hadoop.conf.Configuration |
newConfiguration(SerializableConfiguration conf)
Returns new populated
Configuration object. |
static org.apache.hadoop.mapreduce.Job |
newJob(SerializableConfiguration conf)
Returns new configured
Job object. |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
public SerializableConfiguration()
public SerializableConfiguration(org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.conf.Configuration get()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public static org.apache.hadoop.mapreduce.Job newJob(@Nullable SerializableConfiguration conf) throws java.io.IOException
Job
object.java.io.IOException
public static org.apache.hadoop.conf.Configuration newConfiguration(@Nullable SerializableConfiguration conf)
Configuration
object.