public void initialize(HCatSchema hsch) throws SerDeException {

    log.debug("Initializing HCatRecordSerDe through HCatSchema {}", hsch);

    rowTypeInfo = (StructTypeInfo) TypeInfoUtils.getTypeInfoFromTypeString(hsch.getSchemaAsTypeString());
    cachedObjectInspector = HCatRecordObjectInspectorFactory.getHCatRecordObjectInspector(rowTypeInfo);
  }
SerDe class for serializing to and from HCatRecord.
hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/HCatRecordSerDe.java