@Override public double getCost(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, HashSet<Column> allColumnsSet) { return 10 * getCostRangeIndex(masks, mainIndex.getRowCount(session), filters, filter, sortOrder, false, allColumnsSet); }
@Override public boolean isFirstColumn(Column column) { return getColumnIndex(column) == 0; }
@Override public Cursor findNext(Session session, SearchRow higherThan, SearchRow last) { throw DbException.throwInternalError(toString()); }
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
index = new PageDelegateIndex(this, indexId, indexName, indexType, mainIndex, create, session); } else if (indexType.isSpatial()) {
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
index = new PageDelegateIndex(this, indexId, indexName, indexType, mainIndex, create, session); } else if (indexType.isSpatial()) {
@Override public double getCost(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, HashSet<Column> allColumnsSet) { return 10 * getCostRangeIndex(masks, mainIndex.getRowCount(session), filters, filter, sortOrder, false, allColumnsSet); }
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
index = new PageDelegateIndex(this, indexId, indexName, indexType, mainIndex, create, session); } else if (indexType.isSpatial()) {
@Override public double getCost(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, HashSet<Column> allColumnsSet) { return 10 * getCostRangeIndex(masks, mainIndex.getRowCount(session), filters, filter, sortOrder, false, allColumnsSet); }