|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface FlatFileInputFormat.SerializationContext<S>
An implementation of SerializationContext is responsible for looking up the Serialization implementation for the given RecordReader. Potentially based on the Configuration or some other mechanism The SerializationFactory does not give this functionality since: 1. Requires Serialization implementations to be specified in the Configuration a-priori (although same as setting a SerializationContext) 2. Does not lookup the actual subclass being deserialized. e.g., for Serializable does not have a way of configuring the actual Java class being serialized/deserialized.
Method Summary | |
---|---|
Class<? extends S> |
getRealClass()
Produces the specific class to deserialize. |
org.apache.hadoop.io.serializer.Serialization<S> |
getSerialization()
An Serialization object for objects of type S. |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Method Detail |
---|
org.apache.hadoop.io.serializer.Serialization<S> getSerialization() throws IOException
Serialization
object for objects of type S.
IOException
Class<? extends S> getRealClass() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |