|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NativeIsam
Interface NativeIsamt represents the native implementation of the local ISAM source.
Field Summary | |
---|---|
static int |
COMP_GE
Greater than or equal. |
static int |
COMP_GT
Greater than. |
static int |
COMP_LE
Less than or equal. |
static int |
COMP_LT
Less than. |
Method Summary | |
---|---|
void |
close()
Close. |
int |
create(byte[] buf)
Create new record. |
int |
delete(int ix,
java.lang.Object k)
Delete record by key. |
int |
find(int ix,
java.lang.Object k,
int comp,
byte[] buf)
Search for record by key. |
int |
findnext(byte[] buf)
Next/previous record (GE and GT => next, LE and LT => previous). |
void |
open(java.lang.String fnm,
boolean readonly)
Open isam file. |
int |
read(int ix,
java.lang.Object k,
byte[] buf)
Read record by key. |
boolean |
supportModWithoutLock()
Does this implementation support modification of records without lock. |
boolean |
supportReverse()
Does this implementation support reverse find for LE and LT. |
int |
update(byte[] buf)
Update existing record. |
int |
update(byte[] buf,
int ix,
java.lang.Object k)
Update existing record and do locking first. |
Field Detail |
---|
static final int COMP_GE
static final int COMP_GT
static final int COMP_LE
static final int COMP_LT
Method Detail |
---|
void open(java.lang.String fnm, boolean readonly) throws IsamException
fnm
- file namereadonly
- readonly mode
IsamException
- if problemint read(int ix, java.lang.Object k, byte[] buf) throws IsamException
ix
- key indexk
- key valuebuf
- buffer to receive data
IsamException
- if problemint create(byte[] buf) throws IsamException
buf
- buffer with data
IsamException
int update(byte[] buf) throws IsamException
buf
- buffer with data
IsamException
- if problemint update(byte[] buf, int ix, java.lang.Object k) throws IsamException
ix
- key indexk
- key valuebuf
- buffer with data
IsamException
- if problemint delete(int ix, java.lang.Object k) throws IsamException
ix
- key indexk
- key value
IsamException
- if problemint find(int ix, java.lang.Object k, int comp, byte[] buf) throws IsamException
ix
- key indexk
- key valuecomp
- key comparisonbuf
- buffer to receive data
IsamException
- if problemint findnext(byte[] buf) throws IsamException
buf
- buffer to receive data
IsamException
- if problemvoid close() throws IsamException
IsamException
- if problemboolean supportReverse()
boolean supportModWithoutLock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |