private static class CompactionTool.CompactionMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
Modifier and Type | Field and Description |
---|---|
private boolean |
compactOnce |
private CompactionTool.CompactionWorker |
compactor |
private boolean |
major |
Modifier | Constructor and Description |
---|---|
private |
CompactionMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(org.apache.hadoop.io.LongWritable key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
private CompactionTool.CompactionWorker compactor
private boolean compactOnce
private boolean major
private CompactionMapper()
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
public void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws InterruptedException, IOException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
InterruptedException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.