edu.umd.cloud9.collection.clue
Class CountClueWarcRecords

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

public class CountClueWarcRecords
extends Configured
implements Tool

Simple demo program to count the number of records in the ClueWeb09 collection, from either the original source WARC files or repacked SequenceFiles. Sample invocations:

 setenv HADOOP_CLASSPATH guava.jar

 hadoop jar cloud9.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
   -libjars guava-r09.jar -original \
   -path /shared/collections/ClueWeb09/collection.raw/ -segment 1 \
   -docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat

 hadoop jar cloud9.jar edu.umd.cloud9.collection.clue.CountClueWarcRecords \
   -repacked -path /shared/collections/ClueWeb09/collection.compressed.block/en.01 \
   -docnoMapping /shared/collections/ClueWeb09/docno-mapping.dat
 

Author:
Jimmy Lin

Field Summary
static String MAPPING_OPTION
           
static String ORIGINAL_OPTION
           
static String PATH_OPTION
           
static String REPACKED_OPTION
           
static String SEGMENT_OPTION
           
 
Constructor Summary
CountClueWarcRecords()
           
 
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

ORIGINAL_OPTION

public static final String ORIGINAL_OPTION
See Also:
Constant Field Values

REPACKED_OPTION

public static final String REPACKED_OPTION
See Also:
Constant Field Values

PATH_OPTION

public static final String PATH_OPTION
See Also:
Constant Field Values

MAPPING_OPTION

public static final String MAPPING_OPTION
See Also:
Constant Field Values

SEGMENT_OPTION

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

CountClueWarcRecords

public CountClueWarcRecords()
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