public class SqlJetBtreeIndexTable extends SqlJetBtreeTable implements ISqlJetBtreeIndexTable
SqlJetBtreeTable.State
btree, 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, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public SqlJetBtreeIndexTable(ISqlJetBtree btree, java.lang.String indexName, boolean write) throws SqlJetException
SqlJetException
public SqlJetBtreeIndexTable(ISqlJetBtree btree, java.lang.String indexName, java.util.List<java.lang.String> columns, boolean write) throws SqlJetException
SqlJetException
public ISqlJetIndexDef getIndexDef()
public long lookup(boolean next, java.lang.Object... values) throws SqlJetException
ISqlJetBtreeIndexTable
lookup
in interface ISqlJetBtreeIndexTable
next
- just check next index entryvalues
- the key valuesSqlJetException
public int compareKeys(java.lang.Object[] firstKey, java.lang.Object[] lastKey) throws SqlJetException
compareKeys
in interface ISqlJetBtreeIndexTable
SqlJetException
public boolean checkKey(java.lang.Object... key) throws SqlJetException
ISqlJetBtreeIndexTable
checkKey
in interface ISqlJetBtreeIndexTable
SqlJetException
protected void adjustKeyInfo() throws SqlJetException
adjustKeyInfo
in class SqlJetBtreeTable
key
- SqlJetException
public void insert(long rowId, boolean append, java.lang.Object... key) throws SqlJetException
ISqlJetBtreeIndexTable
insert
in interface ISqlJetBtreeIndexTable
SqlJetException
public boolean delete(long rowId, java.lang.Object... key) throws SqlJetException
ISqlJetBtreeIndexTable
delete
in interface ISqlJetBtreeIndexTable
SqlJetException
public long getKeyRowId() throws SqlJetException
getKeyRowId
in interface ISqlJetBtreeIndexTable
SqlJetException
public void reindex(ISqlJetSchema schema) throws SqlJetException
SqlJetException
public int compareKey(java.lang.Object[] key) throws SqlJetException
compareKey
in interface ISqlJetBtreeIndexTable
SqlJetException
public long lookupNear(boolean next, java.lang.Object[] key) throws SqlJetException
lookupNear
in interface ISqlJetBtreeIndexTable
SqlJetException
public long lookupLastNear(java.lang.Object[] key) throws SqlJetException
lookupLastNear
in interface ISqlJetBtreeIndexTable
SqlJetException
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.