Package com.mapr.db.mapreduce.tools.impl
Class RangeChecksum.RangeChecksumMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.ojai.Value,com.mapr.db.rowcol.DBDocumentImpl,com.mapr.db.mapreduce.impl.ByteBufWritableComparable,org.apache.hadoop.io.LongWritable>
com.mapr.db.mapreduce.tools.impl.RangeChecksum.RangeChecksumMapper
- Enclosing class:
- RangeChecksum
public static class RangeChecksum.RangeChecksumMapper
extends org.apache.hadoop.mapreduce.Mapper<org.ojai.Value,com.mapr.db.rowcol.DBDocumentImpl,com.mapr.db.mapreduce.impl.ByteBufWritableComparable,org.apache.hadoop.io.LongWritable>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup(org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) voidmap(org.ojai.Value rowValue, com.mapr.db.rowcol.DBDocumentImpl docValue, org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) voidsetup(org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) voidupdateChecksum(com.mapr.db.mapreduce.impl.ByteBufWritableComparable row, com.mapr.db.rowcol.DBDocumentImpl docValue) Methods inherited from class org.apache.hadoop.mapreduce.Mapper
run
-
Constructor Details
-
RangeChecksumMapper
public RangeChecksumMapper()
-
-
Method Details
-
setup
public void setup(org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, throws IOException, InterruptedExceptioncom.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setupin classorg.apache.hadoop.mapreduce.Mapper<org.ojai.Value,com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable> - Throws:
IOExceptionInterruptedException
-
updateChecksum
public void updateChecksum(com.mapr.db.mapreduce.impl.ByteBufWritableComparable row, com.mapr.db.rowcol.DBDocumentImpl docValue) -
map
public void map(org.ojai.Value rowValue, com.mapr.db.rowcol.DBDocumentImpl docValue, org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, throws IOException, InterruptedExceptioncom.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
mapin classorg.apache.hadoop.mapreduce.Mapper<org.ojai.Value,com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable> - Throws:
IOExceptionInterruptedException
-
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper<org.ojai.Value, com.mapr.db.rowcol.DBDocumentImpl, throws IOException, InterruptedExceptioncom.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
cleanupin classorg.apache.hadoop.mapreduce.Mapper<org.ojai.Value,com.mapr.db.rowcol.DBDocumentImpl, com.mapr.db.mapreduce.impl.ByteBufWritableComparable, org.apache.hadoop.io.LongWritable> - Throws:
IOExceptionInterruptedException
-