public static class Import.Importer extends TableMapper<ImmutableBytesWritable,Mutation>
| 构造器和说明 |
|---|
Import.Importer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addPutToKv(Put put,
Cell kv) |
void |
map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
processKV(ImmutableBytesWritable key,
Result result,
org.apache.hadoop.mapreduce.Mapper.Context context,
Put put,
Delete delete) |
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public void map(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
map 在类中 org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Mutation>row - The current table row key.value - The columns.context - The current context.IOException - When something is broken with the data.protected void processKV(ImmutableBytesWritable key, Result result, org.apache.hadoop.mapreduce.Mapper.Context context, Put put, Delete delete) throws IOException, InterruptedException
protected void addPutToKv(Put put, Cell kv) throws IOException
IOExceptionpublic void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
setup 在类中 org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Mutation>Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.