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

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
FlatFileInputFormat.SerializationContextFromConf
Enclosing class:
FlatFileInputFormat<T>

public static interface FlatFileInputFormat.SerializationContext<S>
extends org.apache.hadoop.conf.Configurable

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

getSerialization

org.apache.hadoop.io.serializer.Serialization<S> 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 © 2014 The Apache Software Foundation. All rights reserved.