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(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 |
supportFindMixedOther()
Does this implementation support find mixed with other operations.
|
boolean |
supportModWithoutKey()
Does this implementation support modification of records without separate key.
|
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.
|
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(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 dataIsamException - 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 dataIsamException - if problemint update(byte[] buf,
int ix,
java.lang.Object k)
throws IsamException
ix - key indexk - key valuebuf - buffer with dataIsamException - if problemint delete(int ix,
java.lang.Object k)
throws IsamException
ix - key indexk - key valueIsamException - 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 supportModWithoutKey()
boolean supportFindMixedOther()