List of usage examples for org.apache.hadoop.mapred JobConf getBoolean
public boolean getBoolean(String name, boolean defaultValue)
name
property as a boolean
. From source file:voldemort.store.readonly.mr.serialization.JsonReducer.java
License:Apache License
public void configure(JobConf conf) { setInputKeySerializer(getSchemaFromJob(conf, "mapper.output.key.schema")); setInputValueSerializer(getSchemaFromJob(conf, "mapper.output.value.schema")); setOutputKeySerializer(getSchemaFromJob(conf, "reducer.output.key.schema")); setOutputValueSerializer(getSchemaFromJob(conf, "reducer.output.value.schema")); // set comparator for input Key Schema if (conf.getBoolean("use.json.comparator", false)) { conf.setOutputKeyComparatorClass(JsonDeserializerComparator.class); conf.set("json.schema", conf.get("mapper.output.key.schema")); }/*from w ww .j a v a2 s . co m*/ setConfigured(true); }