org.apache.nutch.indexer
Class IndexMerger

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.nutch.indexer.IndexMerger
All Implemented Interfaces:
Configurable, Tool

public class IndexMerger
extends Configured
implements Tool

IndexMerger creates an index for the output corresponding to a single fetcher run.

Author:
Doug Cutting, Mike Cafarella

Field Summary
static String DONE_NAME
           
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
IndexMerger()
           
IndexMerger(Configuration conf)
           
 
Method Summary
static void main(String[] args)
          Create an index for the input files in the named directory.
 void merge(Path[] indexes, Path outputIndex, Path localWorkingDir)
          Merge all input indexes to the single output index
 int run(String[] args)
           
 
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
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

DONE_NAME

public static final String DONE_NAME
See Also:
Constant Field Values
Constructor Detail

IndexMerger

public IndexMerger()

IndexMerger

public IndexMerger(Configuration conf)
Method Detail

merge

public void merge(Path[] indexes,
                  Path outputIndex,
                  Path localWorkingDir)
           throws IOException
Merge all input indexes to the single output index

Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Create an index for the input files in the named directory.

Throws:
Exception

run

public int run(String[] args)
        throws Exception
Specified by:
run in interface Tool
Throws:
Exception


Copyright © 2006 The Apache Software Foundation