20,808
社区成员
发帖
与我相关
我的任务
分享
public class MyMap extends TableMapper<Text, Text> {
@Override
protected void map(ImmutableBytesWritable mapInputKey, Result mapInputValues,
Mapper<ImmutableBytesWritable, Result, Text, Text>.Context context)
throws IOException, InterruptedException {
//mapInputValues来自于多个表:TableA、TableB、TableC......
String rowKey = new String(mapInputValues.getRow());//此处的row key是哪个表的?为什么?
//code......
}
}