com.google.cloud.bigtable.mapreduce
Class Import.Importer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,KEYOUT,VALUEOUT>
-
- org.apache.hadoop.hbase.mapreduce.TableMapper<ImmutableBytesWritable,Mutation>
-
- com.google.cloud.bigtable.mapreduce.Import.Importer
-
- Enclosing class:
- Import
public static class Import.Importer extends TableMapper<ImmutableBytesWritable,Mutation>
Write table content out to files.
-
-
Constructor Summary
Constructors Constructor and Description Importer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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)
-
-
-
Method Detail
-
map
public void map(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
- Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Mutation>
- Parameters:
row
- The current table row key.value
- The columns.context
- The current context.- Throws:
IOException
- When something is broken with the data.
-
processKV
protected void processKV(ImmutableBytesWritable key, Result result, org.apache.hadoop.mapreduce.Mapper.Context context, Put put, Delete delete) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
addPutToKv
protected void addPutToKv(Put put, Cell kv) throws IOException
- Throws:
IOException
-
setup
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
- Overrides:
setup
in classorg.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,Mutation>
-
-