Class BlockStructureMerger


  • public class BlockStructureMerger
    extends StructureMerger
    This class merges two sets of data structures (ie direct index, inverted index, document index, lexicon and statistics), created by Terrier with position information (blocks) and possibly field information, into one set of data structures.
    Author:
    Vassilis Plachouras and Craig Macdonald
    See Also:
    StructureMerger
    • Constructor Detail

      • BlockStructureMerger

        public BlockStructureMerger​(IndexOnDisk _srcIndex1,
                                    IndexOnDisk _srcIndex2,
                                    IndexOnDisk _destIndex)
        constructor
        Parameters:
        _srcIndex1 -
        _srcIndex2 -
        _destIndex -
    • Method Detail

      • mergeInvertedFiles

        protected void mergeInvertedFiles()
        Description copied from class: StructureMerger
        Merges the two lexicons into one. After this stage, the offsets in the lexicon are ot correct. They will be updated only after creating the inverted file.
        Overrides:
        mergeInvertedFiles in class StructureMerger
      • matchBlockProperties

        protected void matchBlockProperties​(java.lang.String structureName)
      • main

        public static void main​(java.lang.String[] args)
        usage: java org.terrier.structures.merging.BlockStructureMerger [binary bits] [inverted file 1] [inverted file 2] [output inverted file]