K
- The type of the internalInputFormat's keysV
- The type of the internalInputFormat's values
public class MVSHierachicalCountMapper<K,V>
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.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() |
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.FileSplit,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
java.io.IOException
java.lang.InterruptedException
public void map(org.apache.hadoop.io.NullWritable key, org.apache.hadoop.mapreduce.lib.input.FileSplit value, org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.mapreduce.lib.input.FileSplit,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
java.io.IOException
java.lang.InterruptedException
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.