单项选择题
读Java代码,回答问题。 假设有文件input1,其内容如下: 20170101-x 20170102-y 20170102-y 20170103-x 20170104-y 20170105-z 20170105-z 20170106-y 20170106-y 针对上述input1文件编写处理的MapReduce程序,其中map方法和reduce方法代码如下: protected void map(LongWritable key, Text value, Mapper<longwritable, text, text>.Context context) throws IOException, InterruptedException { context.write(value, new Text("")); } protected void reduce(Text key, Iterable<text> values, Reducer<text, text, text>.Context context) throws IOException, InterruptedException { context.write(key, new Text("")); } (1)请问map的输入数据和输出数据各自什么类型? (2)请问reduce的输入数据和输出数据各自什么类型? (3)请写出执行map之后的全部输出结果,书写格式为<key, value>。 (4)请写出reduce的全部输出结果。
A.Context
B.write(value,
C.Context
D.write(key,