org::openisis::NativeDb Class Reference

Inheritance diagram for org::openisis::NativeDb:
org::openisis::Db

List of all members.

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]

Detailed Description

This class is the native implementation of class Db.

Installation

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.

Id
NativeDb.java,v 1.5 2003/04/08 00:20:53 kripke Exp
Version:
Revision
1.5
Author:
Author
kripke

Member Function Documentation

Rec org::openisis::NativeDb::readRow ( int  rowid  )  [inline, virtual]

read a cooked row.

Parameters:
rowid the mfn
Returns:
a Rec or null, if row not available.

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).

Parameters:
rowid the mfn
Returns:
a Rec or null, if row not available.

Implements org::openisis::Db.

int [] org::openisis::NativeDb::search ( String  key,
int  mode 
) [inline, virtual]

read the array of rowids matching key.

Parameters:
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.

Parameters:
row the Rec to be written
Returns:
0 if write succeeded, else a negative error code

Implements org::openisis::Db.

short org::openisis::NativeDb::writeXRow ( Rec  rec,
Rec  idx 
) [inline, virtual]

write a cooked row together with index information.

Parameters:
row the Rec to be written
Returns:
0 on success else a negative error code

Implements org::openisis::Db.


Member Data Documentation

Number of this db.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables

Generated on Tue Mar 30 14:47:17 2010 for IsisReader by  doxygen 1.6.1