public interface NativeIsam
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close.
|
int |
create(byte[] buf)
Create new record.
|
int |
create(byte[] buf,
int ix,
java.lang.Object k)
Create new record.
|
int |
delete(byte[] buf)
Delete record.
|
int |
delete(int ix,
java.lang.Object k)
Delete record.
|
int |
find(int comp,
byte[] buf)
Search for record.
|
int |
find(int ix,
java.lang.Object k,
int comp,
byte[] buf)
Search for record.
|
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(byte[] buf)
Read record by key in data.
|
int |
read(int ix,
java.lang.Object k,
byte[] buf)
Read record by key.
|
boolean |
supportCreateWithKey()
Does this implementation support create by key as opposed to only read by data with embedded key.
|
boolean |
supportDeleteWithKey()
Does this implementation support delete by key as opposed to only read by data with embedded key.
|
boolean |
supportFindMixedOther()
Does this implementation support find mixed with other operations.
|
boolean |
supportFindWithKey()
Does this implementation support find by key as opposed to only read by data with embedded key.
|
boolean |
supportReadWithKey()
Does this implementation support read by key as opposed to only read by data with embedded key.
|
boolean |
supportReverse()
Does this implementation support reverse find for LE and LT.
|
boolean |
supportUpdateWithKey()
Does this implementation support update by key as opposed to only read by data with embedded key.
|
int |
update(byte[] buf)
Update existing record and do locking first if necessary/supported.
|
int |
update(byte[] buf,
int ix,
java.lang.Object k)
Update existing record and do locking first if necessary/supported.
|
static final int COMP_GE
static final int COMP_GT
static final int COMP_LE
static final int COMP_LT
void open(java.lang.String fnm, boolean readonly) throws IsamException
fnm
- file namereadonly
- readonly modeIsamException
- if problemint read(byte[] buf) throws IsamException
buf
- buffer with key to fill out with dataIsamException
- if problemint read(int ix, java.lang.Object k, byte[] buf) throws IsamException
ix
- key indexk
- key valuebuf
- buffer to receive dataIsamException
- if problemint create(byte[] buf) throws IsamException
buf
- buffer with data including keyIsamException
- if problemint create(byte[] buf, int ix, java.lang.Object k) throws IsamException
buf
- buffer with dataix
- key indexk
- key valueIsamException
- if problemint update(byte[] buf) throws IsamException
buf
- buffer with data including keyIsamException
- if problemint update(byte[] buf, int ix, java.lang.Object k) throws IsamException
ix
- key indexk
- key valuebuf
- buffer with dataIsamException
- if problemint delete(byte[] buf) throws IsamException
buf
- buffer with data including keyIsamException
- if problemint delete(int ix, java.lang.Object k) throws IsamException
ix
- key indexk
- key valueIsamException
- if problemint find(int comp, byte[] buf) throws IsamException
comp
- key comparisonbuf
- buffer with key to fill out with dataIsamException
- 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 dataIsamException
- if problemint findnext(byte[] buf) throws IsamException
buf
- buffer to receive dataIsamException
- if problemvoid close() throws IsamException
IsamException
- if problemboolean supportReverse()
boolean supportFindMixedOther()
boolean supportReadWithKey()
boolean supportCreateWithKey()
boolean supportUpdateWithKey()
boolean supportDeleteWithKey()
boolean supportFindWithKey()