public class IndexAggregator extends Object
Constructor and Description |
---|
IndexAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
mergeFiles(File[] files,
File outputFile)
Takes a list of sorted files and merges them.
|
void |
sortAndMergeFiles(File[] files,
File outputFile)
Generates a sorted CDX index file based on the set of unsorted CDX input files.
|
public IndexAggregator()
public void sortAndMergeFiles(File[] files, File outputFile)
The operation will not run on a folder which already has a process job running.
files
- A list of the files to aggregateoutputFile
- Name of the output file. In case of a empty filesNames array no outputFiles will be generatedpublic void mergeFiles(File[] files, File outputFile)
files
- The files to merge.outputFile
- The resulting file containing total sorted set of index lines found in all the provided index
filesCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.