public static class FlatFileInputFormat.SerializationContextFromConf<S> extends Object implements FlatFileInputFormat.SerializationContext<S>
FlatFileInputFormat.SerializationContext
that reads the
Serialization class and specific subclass to be deserialized from the
JobConf.Modifier and Type | Field and Description |
---|---|
static String |
SerializationSubclassKey
The JobConf keys for the Class that is being deserialized.
|
Constructor and Description |
---|
FlatFileInputFormat.SerializationContextFromConf() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
Class<S> |
getRealClass()
Produces the specific class to deserialize.
|
org.apache.hadoop.io.serializer.Serialization<S> |
getSerialization()
Looks up and instantiates the Serialization Object
Important to note here that we are not relying on the Hadoop
SerializationFactory part of the Serialization framework.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final String SerializationSubclassKey
public FlatFileInputFormat.SerializationContextFromConf()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public Class<S> getRealClass() throws IOException
FlatFileInputFormat.SerializationContext
getRealClass
in interface FlatFileInputFormat.SerializationContext<S>
does
- not currently throw IOExceptionIOException
public org.apache.hadoop.io.serializer.Serialization<S> getSerialization() throws IOException
getSerialization
in interface FlatFileInputFormat.SerializationContext<S>
does
- not currently throw any IOExceptionIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.