| java.lang.Object com.sun.portal.search.db.JNDIDb
JNDIDb | public class JNDIDb implements RDMDb(Code) | | Search engine interface implementation using JNDI to search a Directory db
|
Method Summary | |
public void | close(SToken st) | public int | count(SToken st, RDMTransaction t) | public void | delete(SToken st, SOIF s, Set view, int flags, RDMTransaction t) | public SOIF | fetch(SToken st, String url, Set view, int flags, RDMTransaction t) | public String | getName() | public void | indexBatch(SToken st) | NamingEnumeration | jndiSearch(String filter, int numHits, Set view, DirContext ctx) | public void | open(SToken st, String rootdir, String dbname, int rw, int mode) | public void | optimize(SToken st) | public int | purge(SToken st, RDMTransaction t) | public void | recover(SToken st, String dbhome, boolean fatal) | public RDMResultSet | search(SToken st, String queryString, int numHits, Set view, String sortOrder, RDMTransaction t) | public void | store(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) Store - creates a transaction for atomic indexing, if none supplied. | public void | update(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) |
delete | public void delete(SToken st, SOIF s, Set view, int flags, RDMTransaction t) throws RDMException(Code) | | Delete RD from database
Parameters: st - Token for search Parameters: s - SOIF document Parameters: view - Set of attributes Parameters: flags - Options Parameters: t - RDM transaction handle throws: RDMException - |
fetch | public SOIF fetch(SToken st, String url, Set view, int flags, RDMTransaction t) throws RDMException(Code) | | Retrieve RD from database, filtered by view
Parameters: st - Token for search Parameters: url - URL string Parameters: view - Set of Attributes Parameters: flags - Options Parameters: t - RDM transaction throws: RDMException - |
getName | public String getName()(Code) | | Obtain the name for the search engine interface
the name of the search engine activity |
jndiSearch | NamingEnumeration jndiSearch(String filter, int numHits, Set view, DirContext ctx) throws RDMException(Code) | | Search the directory db
Parameters: filter - Search filter Parameters: numHits - Number of search hits Parameters: view - Set of Attributes Parameters: ctx - Directory Context for search NamingEnumeration throws: RDMException - |
open | public void open(SToken st, String rootdir, String dbname, int rw, int mode) throws RDMException(Code) | | Open a database
Parameters: st - Token for search Parameters: rootdir - Database home dir Parameters: dbname - Name of database from root database Parameters: rw - RDMDb.WRITER or RDMDb.WRCREAT or RDMDb.READER Parameters: mode - Unix mode throws: RDMException - |
recover | public void recover(SToken st, String dbhome, boolean fatal) throws RDMException(Code) | | Recover the db - must be run stand alone (ie, no one else has the db open)
Parameters: st - Token for search Parameters: dbhome - Database home dir Parameters: fatal - Option throws: RDMException - |
search | public RDMResultSet search(SToken st, String queryString, int numHits, Set view, String sortOrder, RDMTransaction t) throws RDMException(Code) | | Submit the query to the search engine
Parameters: st - Token for search Parameters: queryString - Search query Parameters: numHits - Number of hits Parameters: view - Set of attributes to be retrieved Parameters: sortOrder - Order for sorting the results Parameters: t - RDM transaction handle RDMResultSet throws: RDMException - |
store | public void store(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) throws RDMException(Code) | | Store - creates a transaction for atomic indexing, if none supplied.
Parameters: st - Token for search Parameters: insoif - SOIF document Parameters: view - Set of Attributes Parameters: flags - Options Parameters: t - RDM transaction throws: RDMException - |
update | public void update(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) throws RDMException(Code) | | Update an RD with attributes set in View
Parameters: st - Token for search Parameters: insoif - SOIF document Parameters: view - Set of Attributes Parameters: flags - Options Parameters: t - RDM transaction throws: RDMException - |
|
|