org.cdlib.xtf.textIndexer
Class IndexStats

Object
  extended by IndexStats

public class IndexStats
extends Object

This class calculates and prints out some useful statistics about an existing index, such as number of documents, size, etc.

Author:
Martin Haye

Constructor Summary
IndexStats()
           
 
Method Summary
private static void calcStats(IndexerConfig cfgInfo)
           
static void main(String[] args)
          Main entry-point for the statistics gatherer.
private static String printBig(long num)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexStats

public IndexStats()
Method Detail

main

public static void main(String[] args)
Main entry-point for the statistics gatherer.

This function takes the command line arguments passed and uses them to find an index and calculate statistics for it.

Parameters:
args - Command line arguments to process. The command line arguments required by the IndexStats program are as follows:
IndexStats {-config CfgFilePath} -index IndexName }+
For a complete description of each command line argument, see the TextIndexer class description.


calcStats

private static void calcStats(IndexerConfig cfgInfo)
                       throws IOException
Throws:
IOException

printBig

private static String printBig(long num)