java.lang.Object
recoin.group.ComponentRunnable
recoinx.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. |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
language
private int language
- Language to use for Retrieval.
- See Also:
- recoinx.clef.CLEFConstants
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.
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.