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 Logger LOG
           
 
Constructor Summary
IndexMerger(NutchFileSystem nfs, File[] segments, File outputIndex, File localWorkingDir)
          Merge all of the segments given
 
Method Summary
static void main(String[] args)
          Create an index for the input files in the named directory.
 void merge()
          Load all input segment indices, then add 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 Logger LOG

DONE_NAME

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

IndexMerger

public IndexMerger(NutchFileSystem nfs,
                   File[] segments,
                   File outputIndex,
                   File localWorkingDir)
            throws IOException
Merge all of the segments given

Method Detail

merge

public void merge()
           throws IOException
Load all input segment indices, then add 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