it.unimi.dsi.archive4j.tool
Class ComputeArchiveData

java.lang.Object
  extended by it.unimi.dsi.archive4j.tool.ComputeArchiveData

public class ComputeArchiveData
extends Object

Analyses an Archive and generates frequency and global count data.

Author:
Sebastiano Vigna

Constructor Summary
ComputeArchiveData()
           
 
Method Summary
static void main(String[] args)
           
static void run(Archive<? extends DocumentSummary> archive, String basename)
          Computes frequency and count data for the given archive, and saves the result using the given basename.
static void run(String basename)
          Computes frequency and count data for the given archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeArchiveData

public ComputeArchiveData()
Method Detail

run

public static void run(String basename)
                throws IOException,
                       ConfigurationException
Computes frequency and count data for the given archive.

Parameters:
basename - the archive basename.
Throws:
IOException
ConfigurationException

run

public static void run(Archive<? extends DocumentSummary> archive,
                       String basename)
                throws IOException
Computes frequency and count data for the given archive, and saves the result using the given basename.

Parameters:
archive - an archive.
basename - the output basename.
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception