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

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

Introduction

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

Prototype

public String get(String name, String defaultValue) 

Source Link

Document

Get the value of the name.

Usage

From source file:org.apache.avro.mapred.PipesCompatibleAvroInputFormat.java

License:Apache License

/**
 * Returns the {@code PipesCompatibleAvroRecordReader} to be used
 * //from www.  j a v a2  s  .  co  m
 * @return              the PipesCompatibleAvroRecordReader to be used
 * @throws IOException  if instantiating the
 *                      PipesCompatibleAvroRecordReader fails
 */
@Override
public RecordReader<BytesWritable, BytesWritable> getRecordReader(InputSplit split, JobConf job,
        Reporter reporter) throws IOException {
    reporter.setStatus(split.toString());

    return new PipesCompatibleAvroRecordReader<T>(job, (FileSplit) split,
            new AvroKeyValueGetter<T>(job.get(KEY_FIELD_NAME, KEY_FIELD_NAME_DEFAULT),
                    job.get(VALUE_FIELD_NAME, VALUE_FIELD_NAME_DEFAULT)));
}