| java.lang.Object com.sun.portal.search.db.DbEnvInfo com.sun.portal.search.db.SOIFDb com.sun.portal.search.db.IndexedSOIFDb
IndexedSOIFDb | public class IndexedSOIFDb extends SOIFDb implements RDMDb(Code) | | SOIF Database API
- handles SOIF db i/o
- provides a template for similar, non-SOIF layers, eg, XML, etc.
- hides db implementation details (eg, db might not contain SOIF)
- hides the mechanics of P/NP data
|
Method Summary | |
public void | close(SToken st) | public int | count(SToken st, RDMTransaction t) Number of docs. | public void | delete(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) | public void | delete(SToken st, SOIFInputStream ss, Set view, int flags, RDMTransaction t) Delete a SOIF stream. | public static void | drop(SToken st, String rootdir, String dbname) Delete the named db. | public SOIF | fetch(SToken st, String url, Set view, int flags, RDMTransaction t) | public String | getName() | public void | indexBatch(SToken st) | 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 void | reindex(SToken st, RDMTransaction t) | public RDMResultSet | search(SToken st, String query, int numHits, Set view, String sortOrder, RDMTransaction t) | public void | setIndexBatchSize(SToken st, int n) | public void | store(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) | public void | store(SToken st, SOIFInputStream ss, Set view, int flags, RDMTransaction t) | public void | update(SToken st, SOIF insoif, Set view, int flags, RDMTransaction t) |
open | public void open(SToken st, String rootdir, String dbname, int rw, int mode) throws RDMException(Code) | | open -- Opens a database
- rootdir -- db home dir
- dbname -- name of database from root.db (e.g., default)
- rw -- RDMDb.WRITER or RDMDb.WRCREAT or RDMDb.READER
- mode -- Unix mode
Parameters: st - Parameters: rootdir - Parameters: dbname - Parameters: rw - Parameters: mode - throws: RDMException - |
Methods inherited from com.sun.portal.search.db.SOIFDb | public boolean check(SToken st, String url, int flags, RDMTransaction t) throws RDMException(Code)(Java Doc) public void close(SToken st, RDMTransaction t) throws RDMException(Code)(Java Doc) public void delete(SToken st, SOIF s, 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 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 void indexBatch(SToken st) throws RDMException(Code)(Java Doc) void init(String rootdir, int flags) throws RDMException(Code)(Java Doc) public void open(SToken st, String rootdir, String dbname, int rw, int mode, 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 qry, int numHits, Set view, String sortOrder, RDMTransaction t) 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, SOIF insoif, 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)
|
|
|