org.egothor.query.runner.enhanced
Class VectorRunner

java.lang.Object
  extended by org.egothor.core.query.Runner
      extended by org.egothor.query.runner.VectorRunner
          extended by org.egothor.query.runner.enhanced.VectorRunner

public class VectorRunner
extends VectorRunner

A VectorRunner can execute a number of Runners concurrently. The Rider given to the constructor reads the inverted lists of documents and each Runner in the group of Runners given to the constructor is able to calculate a document's similarity to the query.Similarity to the query results in the document being added to the Rider's hit list.

This object represents a binary form of set of formulas (clausulas).

Author:
Leo Galambos

Constructor Summary
VectorRunner(int model, Rider r, Runner[] w)
          Constructor for the VectorRunner object.
 
Method Summary
 int evaluate(long uid)
          Return the calculated similarity between the query and the document with the given unique ID..
 
Methods inherited from class org.egothor.query.runner.VectorRunner
invalidReason, run, terms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorRunner

public VectorRunner(int model,
                    Rider r,
                    Runner[] w)
Constructor for the VectorRunner object.

Parameters:
model - Description of the Parameter
r - the Rider which will open the inverted lists
w - the Runners containing the queries
Method Detail

evaluate

public int evaluate(long uid)
Return the calculated similarity between the query and the document with the given unique ID..

Overrides:
evaluate in class VectorRunner
Parameters:
uid - the unique ID of the document in question
Returns:
the similarity