K
- The type of the internalInputFormat's keysV
- The type of the internalInputFormat's values
public class MVSHierachicalCountMapper<K,V>
extends org.apache.hadoop.mapred.MapReduceBase
implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapred.FileSplit,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
This mapper implementation catalogs records in different hierarchy levels using MVSuggest.
The output key is a combination of the hierarchy layer's name and the hierarchy level's feature id. The value is the number of records counted for the key's feature
Expected configuration:
Constructor and Description |
---|
MVSHierachicalCountMapper() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf conf) |
void |
map(org.apache.hadoop.io.NullWritable key, org.apache.hadoop.mapred.FileSplit value, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable> output, org.apache.hadoop.mapred.Reporter reporter) |
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
configure
in class org.apache.hadoop.mapred.MapReduceBase
public void map(org.apache.hadoop.io.NullWritable key, org.apache.hadoop.mapred.FileSplit value, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable> output, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
map
in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapred.FileSplit,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
java.io.IOException
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.