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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) protected booleanfilter(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context, Cell cell) voidmap(WALKey key, WALEdit value, org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, ImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) voidsetup(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:
mapin 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:
cleanupin classorg.apache.hadoop.mapreduce.Mapper<WALKey,WALEdit, ImmutableBytesWritable, Mutation> - Throws:
IOExceptionInterruptedException
-
setup
public void setup(org.apache.hadoop.mapreduce.Mapper<WALKey, WALEdit, throws IOExceptionImmutableBytesWritable, Mutation>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setupin classorg.apache.hadoop.mapreduce.Mapper<WALKey,WALEdit, ImmutableBytesWritable, Mutation> - Throws:
IOException
-