edu.arsc.multisearch.merge
Class NaiveMergeSet

java.lang.Object
  extended by edu.arsc.multisearch.merge.FinalSet
      extended by edu.arsc.multisearch.merge.NaiveMergeSet

public class NaiveMergeSet
extends FinalSet


Field Summary
 
Fields inherited from class edu.arsc.multisearch.merge.FinalSet
rankedList, results
 
Constructor Summary
NaiveMergeSet()
           
 
Method Summary
 DocumentWritable[] fromNeg(DocumentWritable[] hits)
          Takes negatively ranked documents and ranks them with positive numbers
 java.lang.String getMergeAlgorithm()
          A function that returns the class name of this algorithm.
 void merge(DocumentWritable[] hits)
          This function takes in a result set, rescores each result and then adds it to the final ranked list at the end.
 
Methods inherited from class edu.arsc.multisearch.merge.FinalSet
getInstance, getList, getResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaiveMergeSet

public NaiveMergeSet()
Method Detail

merge

public void merge(DocumentWritable[] hits)
This function takes in a result set, rescores each result and then adds it to the final ranked list at the end. NOTE: This code is from Aaron Luptak's 2005 Code

Overrides:
merge in class FinalSet
Parameters:
DocumentWritable[] -

fromNeg

public DocumentWritable[] fromNeg(DocumentWritable[] hits)
Takes negatively ranked documents and ranks them with positive numbers

Parameters:
DocumentWritable[] -
Returns:
DocumentWritable[]

getMergeAlgorithm

public java.lang.String getMergeAlgorithm()
A function that returns the class name of this algorithm.

Overrides:
getMergeAlgorithm in class FinalSet
Returns:
String className