Class WALPlayer.WALMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<WALKey,WALEdit,ImmutableBytesWritable,Mutation>
org.apache.hadoop.hbase.mapreduce.WALPlayer.WALMapper
- Enclosing class:
- WALPlayer
protected static class WALPlayer.WALMapper
extends org.apache.hadoop.mapreduce.Mapper<WALKey,WALEdit,ImmutableBytesWritable,Mutation>
A mapper that writes out
Mutation
to be directly applied to a running HBase instance.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup
(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) protected boolean
filter
(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context, Cell cell) void
map
(WALKey key, WALEdit value, org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) void
setup
(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Mapper
run
-
Field Details
-
tables
-
-
Constructor Details
-
WALMapper
protected WALMapper()
-
-
Method Details
-
map
public void map(WALKey key, WALEdit value, org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, throws IOExceptionImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<WALKey,
WALEdit, ImmutableBytesWritable, Mutation> - Throws:
IOException
-
filter
-
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, throws IOException, InterruptedExceptionImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
cleanup
in classorg.apache.hadoop.mapreduce.Mapper<WALKey,
WALEdit, ImmutableBytesWritable, Mutation> - Throws:
IOException
InterruptedException
-
setup
public void setup(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, throws IOExceptionImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Mapper<WALKey,
WALEdit, ImmutableBytesWritable, Mutation> - Throws:
IOException
-