net.sf.eos.hadoop.mapred.index
Class IndexMerger
java.lang.Object
org.apache.hadoop.conf.Configured
net.sf.eos.hadoop.mapred.index.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
Method Summary |
static void |
main(String[] args)
|
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 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
IndexMerger
public IndexMerger()
IndexMerger
public IndexMerger(Configuration conf)
merge
public void merge(Path[] indexes,
Path outputIndex,
Path localWorkingDir)
throws IOException
- Merge all input indexes to the single output index
- Throws:
IOException
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface Tool
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Parameters:
args
-
- Throws:
Exception
Copyright © 2008. All Rights Reserved.