static void initializeDeserializer( Deserializer deserializer, Configuration conf, HCatTableInfo info, HCatSchema schema) throws SerDeException { Properties props = getSerdeProperties(info, schema); LOG.info("Initializing " + deserializer.getClass().getName() + " with properties " + props); deserializer.initialize(conf, props); }
@SuppressWarnings("deprecation") private static void initializeDeserializer(Deserializer deserializer, Properties schema) { try { deserializer.initialize(new Configuration(false), schema); } catch (SerDeException e) { throw new RuntimeException( "error initializing deserializer: " + deserializer.getClass().getName()); } }