List of usage examples for org.apache.hadoop.mapred JobConf get
public String get(String name, String defaultValue)
name
. 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))); }