Class RegexMapper<K>
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<K,Text,Text,LongWritable>
org.apache.hadoop.mapreduce.lib.map.RegexMapper<K>
A
Mapper that extracts text matching a regular expression.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PATTERN
-
GROUP
-
-
Constructor Details
-
RegexMapper
public RegexMapper()
-
-
Method Details
-
setup
public void setup(Mapper<K, Text, Text, LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Description copied from class:MapperCalled once at the beginning of the task. -
map
public void map(K key, Text value, Mapper<K, Text, throws IOException, InterruptedExceptionText, LongWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Description copied from class:MapperCalled once for each key/value pair in the input split. Most applications should override this, but the default is the identity function.- Overrides:
mapin classMapper<K,Text, Text, LongWritable> - Throws:
IOExceptionInterruptedException
-