org.apache.nutch.indexer.field
Class CustomFields.Converter
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.indexer.field.CustomFields.Converter
- All Implemented Interfaces:
- Closeable, Configurable, JobConfigurable, Mapper<LongWritable,Text,Text,FieldWritable>, Reducer<Text,FieldWritable,Text,FieldWritable>
- Enclosing class:
- CustomFields
public static class CustomFields.Converter
- extends Configured
- implements Mapper<LongWritable,Text,Text,FieldWritable>, Reducer<Text,FieldWritable,Text,FieldWritable>
Converts text values into FieldWritable objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomFields.Converter
public CustomFields.Converter()
CustomFields.Converter
public CustomFields.Converter(Configuration conf)
configure
public void configure(JobConf conf)
- Specified by:
configure
in interface JobConfigurable
map
public void map(LongWritable key,
Text value,
OutputCollector<Text,FieldWritable> output,
Reporter reporter)
throws IOException
- Specified by:
map
in interface Mapper<LongWritable,Text,Text,FieldWritable>
- Throws:
IOException
reduce
public void reduce(Text key,
Iterator<FieldWritable> values,
OutputCollector<Text,FieldWritable> output,
Reporter reporter)
throws IOException
- Specified by:
reduce
in interface Reducer<Text,FieldWritable,Text,FieldWritable>
- Throws:
IOException
close
public void close()
- Specified by:
close
in interface Closeable
Copyright © 2006 The Apache Software Foundation