edu.arsc.multisearch.merge
Class FinalSet

java.lang.Object
  extended by edu.arsc.multisearch.merge.FinalSet
Direct Known Subclasses:
LeapOfFaithMergeSet, NaiveMergeSet, RankShuffleMergeSet

public class FinalSet
extends java.lang.Object


Field Summary
protected  OrderedList rankedList
          Final list of ranked documents to be printed
protected  DocumentWritable[] results
          Documents in an array.
 
Constructor Summary
FinalSet()
          Creates a new FinalSet object.
 
Method Summary
 FinalSet getInstance()
          Allows for reflection.
 OrderedList getList()
          A function to retrieve the final result list
 java.lang.String getMergeAlgorithm()
          A function to return the name of the Merge Algorithm.
 DocumentWritable[] getResults()
          Return the documents as a results
 void merge(DocumentWritable[] docs)
          A merge object based on the Naive Merge Algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rankedList

protected OrderedList rankedList
Final list of ranked documents to be printed


results

protected DocumentWritable[] results
Documents in an array.

Constructor Detail

FinalSet

public FinalSet()
Creates a new FinalSet object.

Method Detail

getInstance

public FinalSet getInstance()
Allows for reflection.


merge

public void merge(DocumentWritable[] docs)
A merge object based on the Naive Merge Algorithm.

Parameters:
DocumentWritable[] - hits the documents to be folded into the finalset

getList

public OrderedList getList()
A function to retrieve the final result list

Returns:
OrderedList The results of the merge

getMergeAlgorithm

public java.lang.String getMergeAlgorithm()
A function to return the name of the Merge Algorithm.

Returns:
String

getResults

public DocumentWritable[] getResults()
Return the documents as a results

Returns:
DocumentWritable[]