一、接口
JobContext
它的子接口:
JobContext,
- MapContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>,
- ReduceContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>,
- TaskAttemptContext,
- TaskAttemptContext,
- TaskInputOutputContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
1.JobContext
1)Configuration getConfiguration() (Return the configuration for the job)
例如:
Context context;
Configuration conf1=context.getConfiguration();返回当前作业的配置
接下来conf1就可以调用Configuration的相关方法进行操作
conf1.get("String name");返回参数字符串的属性值
二、类
JobContext
三、枚举
JobContext