org.apache.nutch.indexer.field
Class FieldIndexer
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.indexer.field.FieldIndexer
- All Implemented Interfaces:
- Closeable, Configurable, JobConfigurable, Mapper<Text,Writable,Text,FieldWritable>, Reducer<Text,FieldWritable,Text,FieldIndexer.LuceneDocumentWrapper>, Tool
public class FieldIndexer
- extends Configured
- implements Tool, Mapper<Text,Writable,Text,FieldWritable>, Reducer<Text,FieldWritable,Text,FieldIndexer.LuceneDocumentWrapper>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
DONE_NAME
public static final String DONE_NAME
- See Also:
- Constant Field Values
FieldIndexer
public FieldIndexer()
FieldIndexer
public FieldIndexer(Configuration conf)
configure
public void configure(JobConf job)
- Specified by:
configure
in interface JobConfigurable
close
public void close()
- Specified by:
close
in interface Closeable
map
public void map(Text key,
Writable value,
OutputCollector<Text,FieldWritable> output,
Reporter reporter)
throws IOException
- Specified by:
map
in interface Mapper<Text,Writable,Text,FieldWritable>
- Throws:
IOException
reduce
public void reduce(Text key,
Iterator<FieldWritable> values,
OutputCollector<Text,FieldIndexer.LuceneDocumentWrapper> output,
Reporter reporter)
throws IOException
- Specified by:
reduce
in interface Reducer<Text,FieldWritable,Text,FieldIndexer.LuceneDocumentWrapper>
- Throws:
IOException
index
public void index(Path[] fields,
Path indexDir)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface Tool
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation