private static MapOpCtx initObjectInspector(MapredWork conf,
Configuration hconf, String onefile) throws HiveException,
ClassNotFoundException, InstantiationException, IllegalAccessException,
SerDeException {
PartitionDesc td = conf.getPathToPartitionInfo().get(onefile);
LinkedHashMap<String, String> partSpec = td.getPartSpec();
Properties tblProps = td.getProperties();
Class sdclass = td.getDeserializerClass();
if (sdclass == null) {
String className = td.getSerdeClassName();
if ((className == "") || (className == null)) {
throw new HiveException(
"SerDe class or the SerDe class name is not set for table: "
+ td.getProperties().getProperty("name"));
}
sdclass = hconf.getClassByName(className);
}
String tableName = String.valueOf(tblProps.getProperty("name"));