public class SqlJetBtreeIndexTable extends SqlJetBtreeTable implements ISqlJetBtreeIndexTable
SqlJetBtreeTable.Statebtree, index, rootPage, write| Constructor and Description |
|---|
SqlJetBtreeIndexTable(ISqlJetBtree btree,
java.lang.String indexName,
boolean write)
Open index by name
|
SqlJetBtreeIndexTable(ISqlJetBtree btree,
java.lang.String indexName,
java.util.List<java.lang.String> columns,
boolean write) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustKeyInfo() |
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.
|
ISqlJetIndexDef |
getIndexDef() |
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) |
void |
reindex(ISqlJetSchema schema) |
checkField, clear, clearRecordCache, close, delete, eof, first, getBlob, getCursor, getEncoding, getFieldsCount, getFieldType, getFloat, getInteger, getKeyInfo, getKeySize, getRecord, getString, getValue, getValueMem, getValues, getValueUncached, hasMoved, insert, isNull, last, lock, lockTable, moveTo, newRowId, newRowId, next, popState, previous, pushState, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, 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, unlockpublic SqlJetBtreeIndexTable(ISqlJetBtree btree, java.lang.String indexName, boolean write) throws SqlJetException
SqlJetExceptionpublic SqlJetBtreeIndexTable(ISqlJetBtree btree, java.lang.String indexName, java.util.List<java.lang.String> columns, boolean write) throws SqlJetException
SqlJetExceptionpublic ISqlJetIndexDef getIndexDef()
public long lookup(boolean next,
java.lang.Object... values)
throws SqlJetException
ISqlJetBtreeIndexTablelookup in interface ISqlJetBtreeIndexTablenext - just check next index entryvalues - the key valuesSqlJetExceptionpublic int compareKeys(java.lang.Object[] firstKey,
java.lang.Object[] lastKey)
throws SqlJetException
compareKeys in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic boolean checkKey(java.lang.Object... key)
throws SqlJetException
ISqlJetBtreeIndexTablecheckKey in interface ISqlJetBtreeIndexTableSqlJetExceptionprotected void adjustKeyInfo()
throws SqlJetException
adjustKeyInfo in class SqlJetBtreeTablekey - SqlJetExceptionpublic void insert(long rowId,
boolean append,
java.lang.Object... key)
throws SqlJetException
ISqlJetBtreeIndexTableinsert in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic boolean delete(long rowId,
java.lang.Object... key)
throws SqlJetException
ISqlJetBtreeIndexTabledelete in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic long getKeyRowId()
throws SqlJetException
getKeyRowId in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic void reindex(ISqlJetSchema schema) throws SqlJetException
SqlJetExceptionpublic int compareKey(java.lang.Object[] key)
throws SqlJetException
compareKey in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic long lookupNear(boolean next,
java.lang.Object[] key)
throws SqlJetException
lookupNear in interface ISqlJetBtreeIndexTableSqlJetExceptionpublic long lookupLastNear(java.lang.Object[] key)
throws SqlJetException
lookupLastNear in interface ISqlJetBtreeIndexTableSqlJetException