it.unimi.dsi.archive4j.tool
Class MergeSortedArchives

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

public class MergeSortedArchives
extends Object

Merges or concatenates sorted archives.

Concatenating involves renumbering the documents appearing in each archive (the first summary of the second archive is offset using the id of the last summary of the first archive plus one, and so on). Merging assumes that no document id appears twice—no renumbering is performed.

Author:
Alessio Orlandi

Constructor Summary
MergeSortedArchives()
           
 
Method Summary
static void main(String[] args)
           
static void run(ArchiveWriter<DocumentSummary> output, Archive<? extends DocumentSummary>[] inputs, boolean concatenate, ProgressLogger pl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeSortedArchives

public MergeSortedArchives()
Method Detail

run

public static void run(ArchiveWriter<DocumentSummary> output,
                       Archive<? extends DocumentSummary>[] inputs,
                       boolean concatenate,
                       ProgressLogger pl)
                throws IOException
Throws:
IOException

main

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