Terrier IR Platform
2.2.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.25 $
Author:
Vassilis Plachouras and Craig Macdonald
See Also:
StructureMerger

Constructor Summary
BlockStructureMerger(Index _srcIndex1, Index _srcIndex2, Index _destIndex)
           
BlockStructureMerger(java.lang.String _filename1, java.lang.String _filename2)
          Deprecated.  
 
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)
          Deprecated. Use BlockDirectInvertedOutputStream instead
static void writeFieldPostings(int[][] postings, int firstId, BitOutputStream output, int binaryBits)
          Deprecated. Use BlockDirectInvertedOutputStream instead
static void writeNoFieldPostings(int[][] postings, int firstId, BitOutputStream output)
          Deprecated. Use BlockDirectInvertedOutputStream instead
 
Methods inherited from class uk.ac.gla.terrier.structures.merging.StructureMerger
mergeStructures, setNumberOfBits, setOutputFilename, setOutputIndex, writeFieldPostings, writeNoFieldPostings, 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)
Deprecated. 

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

BlockStructureMerger

public BlockStructureMerger(Index _srcIndex1,
                            Index _srcIndex2,
                            Index _destIndex)
Method Detail

writeBlockPostings

public static void writeBlockPostings(int[][] postings,
                                      int firstId,
                                      BitOutputStream output,
                                      int binaryBits)
                               throws java.io.IOException
Deprecated. Use BlockDirectInvertedOutputStream instead

write Block postings.

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]


writeFieldPostings

public static void writeFieldPostings(int[][] postings,
                                      int firstId,
                                      BitOutputStream output,
                                      int binaryBits)
                               throws java.io.IOException
Deprecated. Use BlockDirectInvertedOutputStream instead

write Block postings with fields.

Throws:
java.io.IOException

writeNoFieldPostings

public static void writeNoFieldPostings(int[][] postings,
                                        int firstId,
                                        BitOutputStream output)
                                 throws java.io.IOException
Deprecated. Use BlockDirectInvertedOutputStream instead

write Block postings with fields.

Throws:
java.io.IOException

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow