it.unimi.di.mg4j.tool
Class PrecomputeIndex

java.lang.Object
  extended by it.unimi.di.mg4j.tool.PrecomputeIndex

public class PrecomputeIndex
extends Object

Precomputes an index.

Since:
4.0
Author:
Sebastiano Vigna

Nested Class Summary
protected static class PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor
           
 
Field Summary
protected  int numberOfDocuments
          The overall number of documents.
protected  String outputBasename
          The output basename.
 
Constructor Summary
PrecomputeIndex(String outputBasename, String[] inputBasename, String queryString, String fieldName, int bufferSize, Map<CompressionFlags.Component,CompressionFlags.Coding> writerFlags, boolean interleaved, boolean skips, int quantum, int height, int skipBufferSize, long logInterval)
          Precomputes an index.
 
Method Summary
static void main(String[] arg)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfDocuments

protected final int numberOfDocuments
The overall number of documents.


outputBasename

protected final String outputBasename
The output basename.

Constructor Detail

PrecomputeIndex

public PrecomputeIndex(String outputBasename,
                       String[] inputBasename,
                       String queryString,
                       String fieldName,
                       int bufferSize,
                       Map<CompressionFlags.Component,CompressionFlags.Coding> writerFlags,
                       boolean interleaved,
                       boolean skips,
                       int quantum,
                       int height,
                       int skipBufferSize,
                       long logInterval)
                throws IOException,
                       ConfigurationException,
                       URISyntaxException,
                       ClassNotFoundException,
                       SecurityException,
                       InstantiationException,
                       IllegalAccessException,
                       InvocationTargetException,
                       NoSuchMethodException,
                       QueryParserException,
                       QueryBuilderVisitorException
Precomputes an index.

Parameters:
outputBasename - the basename of the combined index.
Throws:
QueryParserException
QueryBuilderVisitorException
IOException
ConfigurationException
URISyntaxException
ClassNotFoundException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
Method Detail

run

public void run()
         throws IOException,
                ConfigurationException,
                QueryBuilderVisitorException
Throws:
IOException
ConfigurationException
QueryBuilderVisitorException

main

public static void main(String[] arg)
                 throws com.martiansoftware.jsap.JSAPException,
                        ConfigurationException,
                        IOException,
                        URISyntaxException,
                        ClassNotFoundException,
                        SecurityException,
                        InstantiationException,
                        IllegalAccessException,
                        InvocationTargetException,
                        NoSuchMethodException,
                        QueryParserException,
                        QueryBuilderVisitorException
Throws:
com.martiansoftware.jsap.JSAPException
ConfigurationException
IOException
URISyntaxException
ClassNotFoundException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
QueryParserException
QueryBuilderVisitorException