Interface ISqlJetBtreeIndexTable

All Superinterfaces:
ISqlJetBtreeTable
All Known Implementing Classes:
SqlJetBtreeIndexTable

public interface ISqlJetBtreeIndexTable extends ISqlJetBtreeTable
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • 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

      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