static public Deserializer getDeserializer(Configuration conf,
      org.apache.hadoop.hive.metastore.api.Partition part,
      org.apache.hadoop.hive.metastore.api.Table table) throws MetaException {
    String lib = part.getSd().getSerdeInfo().getSerializationLib();
    try {
      AbstractSerDe deserializer = ReflectionUtil.newInstance(conf.getClassByName(lib).
        asSubclass(AbstractSerDe.class), conf);
      deserializer.initialize(conf, MetaStoreUtils.getTableMetadata(table),
          MetaStoreUtils.getPartitionMetadata(part, table));
      return deserializer;
    } catch (RuntimeException e) {
      throw e;
    } catch (Throwable e) {
      LOG.error("error in initSerDe: " + e.getClass().getName() + " "
          + e.getMessage(), e);
      throw new MetaException(e.getClass().getName() + " " + e.getMessage());
    }
  }
getDeserializer

Get the Deserializer for a partition.

@param conf
         - hadoop config
@param part
         the partition
@param table the table
@return
  Returns instantiated deserializer by looking up class name of deserializer stored in
  storage descriptor of passed in partition. Also, initializes the deserializer with
  schema of partition.
@exception MetaException
             if any problems instantiating the Deserializer
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java