zoukankan      html  css  js  c++  java
  • Mapper抽象类参数

    Mapper< Object, Text, Text, IntWritable>
    Mapper< Text, Text, Text, Text>

    Mapper< Text, IntWritable, Text, IntWritable>

    第一二个表示输入map的key和value,从InputFormat传过来的,key默认是字符偏移量,value默认是一行

    第三四个表示输出的key和value

    mapper中的方法map(Object key, Text value, Context context)

    key和value表示输入的key和value,处理后的数据写入context,使用方法context.write(key, value);,这里的key和value会传递给下一个过程

  • 相关阅读:
    37.js----浅谈js原型的理解
    iOS
    iOS
    iOS
    python3
    ios
    iOS
    python3
    python3
    iOS
  • 原文地址:https://www.cnblogs.com/yan456jie/p/5369354.html
Copyright © 2011-2022 走看看