@InterfaceAudience.Public @InterfaceStability.Stable public class RegexMapper<K> extends Mapper<K,Text,Text,LongWritable>
Mapper
that extracts text matching a regular expression.コンストラクタと説明 |
---|
RegexMapper() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
map(K key,
Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Called once for each key/value pair in the input split.
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Called once at the beginning of the task.
|
public RegexMapper()
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Mapper
public void map(K key, Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
Mapper
map
クラス内 Mapper<K,Text,Text,LongWritable>
IOException
InterruptedException
Copyright © 2016 Apache Software Foundation. All rights reserved.