Classes | |
| class | TermIterator |
Public Member Functions | |
| byte[] | cvt (String txt) |
| String | cvt (byte[] b) |
| NativeDb (String enc, String dbname, String[] args) throws IOException | |
| Rec | readRow (int rowid) |
| short | writeRow (Rec rec) |
| short | writeXRow (Rec rec, Rec idx) |
| Rec | scanRow (int rowid, int tag, String txt) |
| int[] | search (String key, int mode) |
| Iterator | terms (String prefix) |
Public Attributes | |
| final short | db |
Package Functions | |
| Rec | mkRow (Object[] buf) |
| Object[] | mkBuf (Rec rec) |
Static Package Functions | |
| [static initializer] | |
This class is the native implementation of class Db.
The shared library "openjsis" must be loadable. On a UNIX System, make sure that the file libopenjsis.so resides in a directory listed by the environment variable LD_LIBRARY_PATH or in /etc/ld.so.conf. If you just drop it in /usr/lib or similar dir, you may have to run a command like ldconfig.
On Windows, put openjsis.dll somewhere in the PATH.
| Rec org::openisis::NativeDb::readRow | ( | int | rowid | ) | [inline, virtual] |
read a cooked row.
| rowid | the mfn |
Implements org::openisis::Db.
| Rec org::openisis::NativeDb::scanRow | ( | int | rowid, | |
| int | tag, | |||
| String | txt | |||
| ) | [inline, virtual] |
read the first row with rowid >= given rowid and containing txt in subfield tag (any, if 0).
| rowid | the mfn |
Implements org::openisis::Db.
| int [] org::openisis::NativeDb::search | ( | String | key, | |
| int | mode | |||
| ) | [inline, virtual] |
read the array of rowids matching key.
| key | key to look for | |
| mode | one of the QRY_ constants above. may be ored with a tag<<16 to limit search to that field |
Implements org::openisis::Db.
| short org::openisis::NativeDb::writeRow | ( | Rec | rec | ) | [inline, virtual] |
write a cooked row.
| row | the Rec to be written |
Implements org::openisis::Db.
write a cooked row together with index information.
| row | the Rec to be written |
Implements org::openisis::Db.
| final short org::openisis::NativeDb::db |
Number of this db.
1.6.1