kevinweil/elephant-bird — pull request #175 by rangadi (2012-04-04 05:10:24+00:00)
Title: setClassConf() interface

long pending update to how a Thrift/Protobuf class is set in conf.

previous getInputFormatClass() which sets the conf
is not intuitive. setClassConf() is cleaner and not confusing.

before :

job.setInputFormat(LzoFormat.getInputFormatClass(job, ThriftType.class));
// it is odd that get() modifies configuration

now:

LzoFormat.setClassConf(conf, ThriftType.class);
job.setInputFormat(LzoFormat.class);