| java.lang.Object com.sun.portal.search.db.SearchOnlyDb com.sun.portal.search.db.TaxonomyDb
TaxonomyDb | public class TaxonomyDb extends SearchOnlyDb (Code) | | Support for RDM Taxonomy requests
RDM-Query-Language=Taxonomy-Basic
Scope = descendant Classification | descendant/N Classification
children Classification | anklebiter Classification
advise-doc-count/N Classification
where
Classification = ROOT | Classification-Id
Example RDM messages
--------------------
To send the entire taxonomy (node and everything below):
|
Inner Class :class QLTaxQuery | |
Inner Class :class QLSearchQuery | |
Inner Class :class QLTaxTraverse implements RDMCallback | |
Inner Class :class AddCatContent implements RDMCallback | |
Inner Class :class UpdateClassSOIF implements RDMCallback | |
Method Summary | |
protected void | checkTaxonomy(RDMRequest req, RDMResponse res, QLTaxQuery qry, RDMClassification cp) Handles advisory corrections to the classified document count stats. | public void | close(SToken st) | public int | fetch(SToken st, Datum key, Datum result, int flags, RDMTransaction t) Returns 0 if present, or Db.DB_NOTFOUND or DBb.DB_KEYEMPTY (for missing recno key)
If result is null, simply checks for presence of key in db. | public SOIF | fetch(SToken st, String url, Set view, int flags, RDMTransaction t) | public SOIF | fetch(SToken st, String url, int flags, RDMTransaction t) | protected void | getTaxBasicResults(RDMRequest req, RDMResponse res, QLTaxQuery qry) | public void | init(String dbname) | protected void | loadTaxonomy(String taxfn) | public void | open(SToken st, String rootdir, String dbname, int rw, int mode) | public void | recover(String dbhome, boolean fatal) | protected synchronized void | refreshTaxonomy(String dbname) |
CLASS_IDXBATCH | final public static String CLASS_IDXBATCH(Code) | | |
QL_CLASSIFICATION | final public static String QL_CLASSIFICATION(Code) | | |
theTax_refresh_rate | static int theTax_refresh_rate(Code) | | |
fetch | public int fetch(SToken st, Datum key, Datum result, int flags, RDMTransaction t) throws RDMException(Code) | | Returns 0 if present, or Db.DB_NOTFOUND or DBb.DB_KEYEMPTY (for missing recno key)
If result is null, simply checks for presence of key in db.
Parameters: st - Parameters: key - Parameters: result - Parameters: flags - Parameters: t - throws: RDMException - |
open | public void open(SToken st, String rootdir, String dbname, int rw, int mode) throws RDMException(Code) | | open -- Opens a Search Database
- rootdir -- db home dir
- dbname -- name of database from root.db (e.g., default)
- rw -- SOIFDb.WRITER or SOIFDb.WRCREAT or SOIFDb.READER
- mode -- Unix mode
|
recover | public void recover(String dbhome, boolean fatal) throws RDMException(Code) | | Recover the db - must be run stand alone (ie, no one else has the db open)
|
Methods inherited from com.sun.portal.search.db.SearchOnlyDb | public void admin(SToken st, String cmd) throws RDMException(Code)(Java Doc) public void close(SToken st) throws RDMException(Code)(Java Doc) public int count(SToken st, RDMTransaction t) throws RDMException(Code)(Java Doc) public static void create(SToken st, String rootdir, String dbname, String parts) throws RDMException(Code)(Java Doc) public void create1(SToken st, String rootdir, String dbname, String[] parts) throws RDMException(Code)(Java Doc) public void delete(SToken st, SOIF insoif, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void delete(SToken st, SOIF s, Set view, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void delete(SToken st, Datum key, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public static void drop(SToken st, String rootdir, String dbname) throws RDMException(Code)(Java Doc) public void drop1(SToken st, String rootdir, String dbname) throws RDMException(Code)(Java Doc) public int fetch(SToken st, Datum key, Datum result, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public SOIF fetch(SToken st, String url, Set view, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public SOIF fetch(SToken st, String url, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public String getName()(Code)(Java Doc) public Set getSupportedDataTypes(SToken st) throws RDMException(Code)(Java Doc) public Set getSupportedQueryLanguages(SToken st) throws RDMException(Code)(Java Doc) public void housekeep() throws RDMException(Code)(Java Doc) public void indexBatch(SToken st) throws RDMException(Code)(Java Doc) public void open(SToken st, String rootdir, String dbname, int rw, int mode) throws RDMException(Code)(Java Doc) public void optimize(SToken st) throws RDMException(Code)(Java Doc) public int purge(SToken st, RDMTransaction t) throws RDMException(Code)(Java Doc) public void recover(SToken st, String dbhome, boolean fatal) throws RDMException(Code)(Java Doc) public RDMResultSet search(SToken st, String query, int numHits, Set view, String sortOrder, RDMTransaction t) throws RDMException(Code)(Java Doc) public void setIndexBatchSize(SToken st, int n) throws RDMException(Code)(Java Doc) public void store(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void store(SToken st, Datum key, Datum newdata, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void store(SToken st, SOIF soif, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void update(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc)
|
|
|