Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Hadoop map reduce 的新手,我想知道有一些输出格式类型可以让我直接从映射器发出矩阵(2d 数组)(而不转换为 1d)。
我计划将其包含在我的 Btech 项目中。
看看:http ://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/io/TwoDArrayWritable.html 我想这就是你需要的。
是的,您只想发出一个value可以使用的二维数组TwoDArrayWritable
value
TwoDArrayWritable
如果您需要发出一个key也作为矩阵 - 您需要实现一个自定义可写类
key
希望你有一个想法。