| org.h2.schema.SchemaObjectBase org.h2.index.BaseIndex
All known Subclasses: org.h2.index.ScanIndex, org.h2.index.RangeIndex, org.h2.index.LinearHashIndex, org.h2.index.ViewIndex, org.h2.index.BtreeIndex, org.h2.index.LinkedIndex, org.h2.index.HashIndex, org.h2.index.TreeIndex, org.h2.index.MetaIndex, org.h2.index.FunctionIndex,
BaseIndex | abstract public class BaseIndex extends SchemaObjectBase implements Index(Code) | | Most index implementations extend the base index.
|
Method Summary | |
abstract public void | add(Session session, Row row) Add a row to this index. | public boolean | canFindNext() | abstract public boolean | canGetFirstOrLast() Check if this index can quickly find the first or last value. | abstract public void | close(Session session) Close this index. | public void | commit(int operation, Row row) | public int | compareKeys(SearchRow rowData, SearchRow compare) | public int | compareRows(SearchRow rowData, SearchRow compare) | abstract public Cursor | find(Session session, SearchRow first, SearchRow last) Create a cursor to iterate over a number of rows. | abstract public SearchRow | findFirstOrLast(Session session, boolean first) Find the first (or last) value of this index. | public Cursor | findNext(Session session, SearchRow first, SearchRow last) | public int | getColumnIndex(Column col) | public String | getColumnListSQL() | public Column[] | getColumns() | abstract public double | getCost(Session session, int[] masks) Calculate the cost to find rows. | public long | getCostRangeIndex(int[] masks, long rowCount) | public String | getCreateSQL() | public String | getCreateSQLForCopy(Table table, String quotedName) | public String | getDropSQL() | public SQLException | getDuplicateKeyException() | public IndexColumn[] | getIndexColumns() | public IndexType | getIndexType() | public int | getLookupCost(long rowCount) | public String | getPlanSQL() | public long | getRowCount(Session session) | public Table | getTable() | public int | getType() | public boolean | isNull(Row newRow) | abstract public boolean | needRebuild() Check if this index needs to be re-built. | abstract public void | remove(Session session, Row row) Remove a row from the index. | abstract public void | remove(Session session) Remove the index. | public void | removeChildrenAndResources(Session session) | abstract public void | truncate(Session session) Truncate the index. |
columnIds | protected int[] columnIds(Code) | | |
descending | protected boolean[] descending(Code) | | |
rowCount | protected long rowCount(Code) | | |
add | abstract public void add(Session session, Row row) throws SQLException(Code) | | Add a row to this index.
Parameters: session - the session Parameters: row - the row to add |
canFindNext | public boolean canFindNext()(Code) | | |
canGetFirstOrLast | abstract public boolean canGetFirstOrLast()(Code) | | Check if this index can quickly find the first or last value.
true if it can |
close | abstract public void close(Session session) throws SQLException(Code) | | Close this index.
Parameters: session - the session |
find | abstract public Cursor find(Session session, SearchRow first, SearchRow last) throws SQLException(Code) | | Create a cursor to iterate over a number of rows.
Parameters: session - the session Parameters: first - the first row to return (null if no limit) Parameters: last - the last row to return (null if no limit) |
findFirstOrLast | abstract public SearchRow findFirstOrLast(Session session, boolean first) throws SQLException(Code) | | Find the first (or last) value of this index.
Parameters: session - the session Parameters: first - true for the first value, false for the last |
getCost | abstract public double getCost(Session session, int[] masks) throws SQLException(Code) | | Calculate the cost to find rows.
Parameters: session - the session Parameters: masks - the condition mask |
getCostRangeIndex | public long getCostRangeIndex(int[] masks, long rowCount) throws SQLException(Code) | | |
getLookupCost | public int getLookupCost(long rowCount)(Code) | | |
getType | public int getType()(Code) | | |
isNull | public boolean isNull(Row newRow)(Code) | | |
needRebuild | abstract public boolean needRebuild()(Code) | | Check if this index needs to be re-built.
true if it must be re-built. |
remove | abstract public void remove(Session session, Row row) throws SQLException(Code) | | Remove a row from the index.
Parameters: session - the session Parameters: row - the row |
remove | abstract public void remove(Session session) throws SQLException(Code) | | Remove the index.
Parameters: session - the session |
truncate | abstract public void truncate(Session session) throws SQLException(Code) | | Truncate the index.
Parameters: session - the session |
|
|