uk.ac.gla.terrier.structures.merging
Class BlockStructureMerger
java.lang.Object
uk.ac.gla.terrier.structures.merging.StructureMerger
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow