-
Method Summary
boolean
Check current record against key.
int
int
compareKeys(java.lang.Object[] firstKey,
java.lang.Object[] lastKey)
boolean
delete(long rowId,
java.lang.Object... key)
Delete entry which matches to key and point to given rowId.
long
void
insert(long rowId,
boolean append,
java.lang.Object... key)
Writes key into the index.
long
lookup(boolean next,
java.lang.Object... values)
Lookup index entry by key values.
long
long
Methods inherited from interface org.tmatesoft.sqljet.core.internal.table.ISqlJetBtreeTable
clear, close, delete, eof, first, getBlob, getEncoding, getFieldsCount, getFieldType, getFloat, getInteger, getKeySize, getRecord, getString, getValue, getValues, hasMoved, insert, isNull, last, lock, lockTable, moveTo, newRowId, newRowId, next, popState, previous, pushState, unlock
-
Method Details
-
lookup
long lookup(boolean next,
java.lang.Object... values)
throws SqlJetException
Lookup index entry by key values. If 'next' is true then just check next entry in index.
- Parameters:
next
- just check next index entry
values
- the key values
- Returns:
- Throws:
SqlJetException
-
insert
void insert(long rowId,
boolean append,
java.lang.Object... key)
throws SqlJetException
Writes key into the index. Data for the entry is nil.
Append flag that provides a hint to the b-tree layer that this insert is
likely to be an append.
- Parameters:
rowId
-
append
-
key
-
- Throws:
SqlJetException
-
delete
Delete entry which matches to key and point to given rowId.
- Parameters:
rowId
-
key
-
- Returns:
- true if there was deleted entry which matches to key.
- Throws:
SqlJetException
-
checkKey
Check current record against key.
- Parameters:
key
-
- Returns:
- Throws:
SqlJetException
-
-
-
-
-
compareKeys
int compareKeys(java.lang.Object[] firstKey,
java.lang.Object[] lastKey)
throws SqlJetException
- Parameters:
firstKey
-
lastKey
-
- Returns:
- Throws:
SqlJetException