Interface ISqlJetBtreeIndexTable
-
- All Superinterfaces:
ISqlJetBtreeTable
- All Known Implementing Classes:
SqlJetBtreeIndexTable
public interface ISqlJetBtreeIndexTable extends ISqlJetBtreeTable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkKey(java.lang.Object... key)
Check current record against key.int
compareKey(java.lang.Object[] key)
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
getKeyRowId()
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
lookupLastNear(java.lang.Object[] key)
long
lookupNear(boolean next, java.lang.Object[] key)
-
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 Detail
-
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 entryvalues
- 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
boolean delete(long rowId, java.lang.Object... key) throws SqlJetException
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
boolean checkKey(java.lang.Object... key) throws SqlJetException
Check current record against key.- Parameters:
key
-- Returns:
- Throws:
SqlJetException
-
getKeyRowId
long getKeyRowId() throws SqlJetException
- Throws:
SqlJetException
-
compareKey
int compareKey(java.lang.Object[] key) throws SqlJetException
- Parameters:
key
-- Returns:
- Throws:
SqlJetException
-
lookupNear
long lookupNear(boolean next, java.lang.Object[] key) throws SqlJetException
- Parameters:
b
-key
-- Returns:
- Throws:
SqlJetException
-
lookupLastNear
long lookupLastNear(java.lang.Object[] key) throws SqlJetException
- Parameters:
key
-- Returns:
- Throws:
SqlJetException
-
compareKeys
int compareKeys(java.lang.Object[] firstKey, java.lang.Object[] lastKey) throws SqlJetException
- Parameters:
firstKey
-lastKey
-- Returns:
- Throws:
SqlJetException
-
-