Package org.apache.hadoop.hbase.test
Class IntegrationTestLoadCommonCrawl.Loader.LoaderMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,WARCWritable,IntegrationTestLoadCommonCrawl.HBaseKeyWritable,org.apache.hadoop.io.BytesWritable>
org.apache.hadoop.hbase.test.IntegrationTestLoadCommonCrawl.Loader.LoaderMapper
- Enclosing class:
- IntegrationTestLoadCommonCrawl.Loader
public static class IntegrationTestLoadCommonCrawl.Loader.LoaderMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,WARCWritable,IntegrationTestLoadCommonCrawl.HBaseKeyWritable,org.apache.hadoop.io.BytesWritable>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.client.AsyncConnection
protected boolean
protected ExecutorService
protected AtomicLong
protected org.apache.hadoop.hbase.client.AsyncTable<org.apache.hadoop.hbase.client.ScanResultConsumer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup
(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) protected void
map
(org.apache.hadoop.io.LongWritable key, WARCWritable value, org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context output) protected void
setup
(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Mapper
run
-
Field Details
-
conn
-
table
protected org.apache.hadoop.hbase.client.AsyncTable<org.apache.hadoop.hbase.client.ScanResultConsumer> table -
executor
-
inflight
-
doIncrements
-
-
Constructor Details
-
LoaderMapper
public LoaderMapper()
-
-
Method Details
-
setup
protected void setup(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, throws IOException, InterruptedExceptionIntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,
WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable> - Throws:
IOException
InterruptedException
-
cleanup
protected void cleanup(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, throws IOException, InterruptedExceptionIntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
cleanup
in classorg.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,
WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable> - Throws:
IOException
InterruptedException
-
map
protected void map(org.apache.hadoop.io.LongWritable key, WARCWritable value, org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable, WARCWritable, throws IOException, InterruptedExceptionIntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable>.org.apache.hadoop.mapreduce.Mapper.Context output) - Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,
WARCWritable, IntegrationTestLoadCommonCrawl.HBaseKeyWritable, org.apache.hadoop.io.BytesWritable> - Throws:
IOException
InterruptedException
-