com.hrstc.trec
Class ResultMerger

java.lang.Object
  extended by com.hrstc.trec.ResultMerger

public class ResultMerger
extends java.lang.Object

ResultMerger.java Created on January 9, 2005, 11:34 AM Merges results from two files; one by one; Files must have equal number of docs / query

Author:
Neil O. Rouben

Field Summary
(package private)  java.lang.String formatIn1
           
(package private)  java.lang.String formatIn2
           
(package private)  java.lang.String formatOut
           
(package private)  java.io.BufferedReader reader1
           
(package private)  java.io.BufferedReader reader2
           
(package private)  java.io.BufferedWriter writer
           
 
Constructor Summary
ResultMerger(java.lang.String[] args)
          Creates a new instance of ResultMerger
 
Method Summary
static void main(java.lang.String[] args)
           
 void process()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader1

java.io.BufferedReader reader1

reader2

java.io.BufferedReader reader2

writer

java.io.BufferedWriter writer

formatIn1

java.lang.String formatIn1

formatIn2

java.lang.String formatIn2

formatOut

java.lang.String formatOut
Constructor Detail

ResultMerger

public ResultMerger(java.lang.String[] args)
             throws java.io.IOException
Creates a new instance of ResultMerger

Throws:
java.io.IOException
Method Detail

process

public void process()
             throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Parameters:
args - the command line arguments 0 - file1 in 1 - file2 in 2 - file out
Throws:
java.io.IOException