edu.umd.cloud9.collection.trec
Class TrecForwardIndexBuilder

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by edu.umd.cloud9.collection.trec.TrecForwardIndexBuilder
All Implemented Interfaces:
Configurable, Tool

public class TrecForwardIndexBuilder
extends Configured
implements Tool

Tool for building a document forward index for TREC collections. Run without any arguments for help. The guava jar must be included using -libjar for this tool to run. Sample invocation

 hadoop jar cloud9.jar edu.umd.cloud9.collection.trec.TrecForwardIndexBuilder \
  -libjars guava.jar \
  -collection /shared/collections/trec/trec4-5_noCRFR.xml \
  -docnoMapping /shared/collections/trec/docno-mapping.dat \
  -index findex.dat
 

Author:
Jimmy Lin

Field Summary
static String COLLECTION_OPTION
           
static String INDEX_OPTION
           
static String MAPPING_OPTION
           
 
Constructor Summary
TrecForwardIndexBuilder()
           
 
Method Summary
static void main(String[] args)
          Dispatches command-line arguments to the tool via the ToolRunner.
 int run(String[] args)
          Runs this tool.
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Field Detail

COLLECTION_OPTION

public static final String COLLECTION_OPTION
See Also:
Constant Field Values

INDEX_OPTION

public static final String INDEX_OPTION
See Also:
Constant Field Values

MAPPING_OPTION

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

TrecForwardIndexBuilder

public TrecForwardIndexBuilder()
Method Detail

run

public int run(String[] args)
        throws Exception
Runs this tool.

Specified by:
run in interface Tool
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Dispatches command-line arguments to the tool via the ToolRunner.

Throws:
Exception