Example usage for org.apache.hadoop.mapred JobConf getBoolean

List of usage examples for org.apache.hadoop.mapred JobConf getBoolean

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred JobConf getBoolean.

Prototype

public boolean getBoolean(String name, boolean defaultValue) 

Source Link

Document

Get the value of the name property as a boolean.

Usage

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);
}