Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef.irs.mysql
Class CLEFMySQLAdapter.MySQLRunnable  view CLEFMySQLAdapter.MySQLRunnable download CLEFMySQLAdapter.MySQLRunnable.java

java.lang.Object
  extended byrecoin.group.ComponentRunnable
      extended byrecoinx.clef.irs.mysql.CLEFMySQLAdapter.MySQLRunnable
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CLEFMySQLAdapter

protected class CLEFMySQLAdapter.MySQLRunnable
extends recoin.group.ComponentRunnable

The MySQLRunnable class implements the special behavior to query the indexes of the database. It behaves differently, i.e. it searches different collections/tables, according to the language with which it is created.


Field Summary
private  int language
          Language to use for Retrieval.
 
Fields inherited from class recoin.group.ComponentRunnable
container, finished, support, timeStamp, worker
 
Constructor Summary
CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer rc, recoin.group.ComponentSupport cs, recoin.group.ComponentRunnable r, recoin.group.ComponentWorker worker, int lang)
          Creates a new MySQLRunnable with the specified RetrievalContainer, ComponentSupport, ComponentRunnable and ComponentWorker that performs retrieval for the specified language.
CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer rc, recoin.group.ComponentSupport cs, recoin.group.ComponentWorker worker, int lang)
          Creates a new MySQLRunnable with the specified RetrievalContainer, ComponentSupport and ComponentWorker that performs retrieval for the specified language.
CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer container, recoin.group.ComponentWorker worker, int lang)
          Creates a new MySQLRunnable with the specified RetrievalContainer and ComponentWorker that performs retrieval for the specified language.
 
Method Summary
 void run()
          Performs a search over indexes in a MySQL database according to the language with which it was created.
 
Methods inherited from class recoin.group.ComponentRunnable
getParentRunnable, getThreadName, isFinished, setFinished, setParentRunnable, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

private int language
Language to use for Retrieval.

See Also:
recoinx.clef.CLEFConstants
Constructor Detail

CLEFMySQLAdapter.MySQLRunnable

public CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer container,
                                      recoin.group.ComponentWorker worker,
                                      int lang)
Creates a new MySQLRunnable with the specified RetrievalContainer and ComponentWorker that performs retrieval for the specified language.


CLEFMySQLAdapter.MySQLRunnable

public CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer rc,
                                      recoin.group.ComponentSupport cs,
                                      recoin.group.ComponentWorker worker,
                                      int lang)
Creates a new MySQLRunnable with the specified RetrievalContainer, ComponentSupport and ComponentWorker that performs retrieval for the specified language.


CLEFMySQLAdapter.MySQLRunnable

public CLEFMySQLAdapter.MySQLRunnable(recoin.container.RetrievalContainer rc,
                                      recoin.group.ComponentSupport cs,
                                      recoin.group.ComponentRunnable r,
                                      recoin.group.ComponentWorker worker,
                                      int lang)
Creates a new MySQLRunnable with the specified RetrievalContainer, ComponentSupport, ComponentRunnable and ComponentWorker that performs retrieval for the specified language.

Method Detail

run

public void run()
Performs a search over indexes in a MySQL database according to the language with which it was created.

First the indexes, i.e. the collections/tables which are to be searched are determined. Then, for each collection, a combined search over the 'title' and 'text' document fields is performed. At the end, all result lists from different collections are merged into one CLEFResultList.