org.apache.nutch.indexer.field
Class CustomFields.Converter

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by 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.


Constructor Summary
CustomFields.Converter()
           
CustomFields.Converter(Configuration conf)
           
 
Method Summary
 void close()
           
 void configure(JobConf conf)
           
 void map(LongWritable key, Text value, OutputCollector<Text,FieldWritable> output, Reporter reporter)
           
 void reduce(Text key, Iterator<FieldWritable> values, OutputCollector<Text,FieldWritable> output, Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFields.Converter

public CustomFields.Converter()

CustomFields.Converter

public CustomFields.Converter(Configuration conf)
Method Detail

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