Terrier IR Platform
1.1.1

uk.ac.gla.terrier.structures.merging
Class BlockStructureMerger

java.lang.Object
  extended by uk.ac.gla.terrier.structures.merging.StructureMerger
      extended by uk.ac.gla.terrier.structures.merging.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.

Version:
$Revision: 1.17 $
Author:
Vassilis Plachouras
See Also:
StructureMerger

Constructor Summary
BlockStructureMerger(java.lang.String _filename1, java.lang.String _filename2)
          A constructor that sets the filenames of the inverted files to merge
 
Method Summary
static void main(java.lang.String[] args)
          usage: java uk.ac.gla.terrier.structures.merging.BlockStructureMerger [binary bits] [inverted file 1] [inverted file 2] [output inverted file]
static void writeBlockPostings(int[][] postings, int firstId, BitOutputStream output, int binaryBits)
           
static void writeFieldPostings(int[][] postings, int firstId, BitOutputStream output, int binaryBits)
           
static void writeNoFieldPostings(int[][] postings, int firstId, BitOutputStream output)
           
 
Methods inherited from class uk.ac.gla.terrier.structures.merging.StructureMerger
mergeStructures, setNumberOfBits, setOutputFilename, writePostings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockStructureMerger

public BlockStructureMerger(java.lang.String _filename1,
                            java.lang.String _filename2)
A constructor that sets the filenames of the inverted files to merge

Parameters:
_filename1 - the first inverted file to merge
_filename2 - the second inverted file to merge
Method Detail

writeBlockPostings

public static void writeBlockPostings(int[][] postings,
                                      int firstId,
                                      BitOutputStream output,
                                      int binaryBits)
                               throws java.io.IOException
Throws:
java.io.IOException

writeFieldPostings

public static void writeFieldPostings(int[][] postings,
                                      int firstId,
                                      BitOutputStream output,
                                      int binaryBits)
                               throws java.io.IOException
Throws:
java.io.IOException

writeNoFieldPostings

public static void writeNoFieldPostings(int[][] postings,
                                        int firstId,
                                        BitOutputStream output)
                                 throws java.io.IOException
Throws:
java.io.IOException

main

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


Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow