org.apache.hadoop.hive.ql.io
Interface FlatFileInputFormat.SerializationContext<S>

All Known Implementing Classes:
FlatFileInputFormat.SerializationContextFromConf
Enclosing class:
FlatFileInputFormat<T>

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.
  getSerialization()
          An Serialization object for objects of type S.
 

Method Detail

getSerialization

 getSerialization()
                       throws IOException
An Serialization object for objects of type S.

Returns:
a serialization object for this context
Throws:
IOException

getRealClass

Class<? extends S> getRealClass()
                                throws IOException
Produces the specific class to deserialize.

Throws:
IOException


Copyright © 2012 The Apache Software Foundation