org.apache.nutch.indexer
Class IndexMerger

java.lang.Object
  extended byorg.apache.nutch.indexer.IndexMerger

public class IndexMerger
extends Object

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(FileSystem fs, Path[] indexes, Path outputIndex, Path localWorkingDir, Configuration conf)
          Merge all of the indexes given
 
Method Summary
static void main(String[] args)
          Create an index for the input files in the named directory.
 void merge()
          All all input indexes to the single output index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(FileSystem fs,
                   Path[] indexes,
                   Path outputIndex,
                   Path localWorkingDir,
                   Configuration conf)
            throws IOException
Merge all of the indexes given

Method Detail

merge

public void merge()
           throws IOException
All 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


Copyright © 2006 The Apache Software Foundation