public class H2TableIndex
extends org.h2.index.BaseIndex
org.h2gis.drivers.FileDriver, the key is the row index [1-n].| Modifier and Type | Field and Description |
|---|---|
static String |
PK_COLUMN_NAME |
| Constructor and Description |
|---|
H2TableIndex(org.h2gis.api.FileDriver driver,
org.h2.table.Table table,
int id)
Constructor for scan index.
|
H2TableIndex(org.h2gis.api.FileDriver driver,
org.h2.table.Table table,
int id,
org.h2.table.Column PKColumn,
String indexName)
Constructor for primary key index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.h2.engine.Session session,
org.h2.result.Row row) |
boolean |
canGetFirstOrLast() |
void |
checkRename() |
void |
close(org.h2.engine.Session session) |
org.h2.index.Cursor |
find(org.h2.engine.Session session,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last) |
org.h2.index.Cursor |
findFirstOrLast(org.h2.engine.Session session,
boolean first) |
double |
getCost(org.h2.engine.Session session,
int[] masks,
org.h2.table.TableFilter[] tableFilters,
int filter,
org.h2.result.SortOrder sortOrder,
HashSet<org.h2.table.Column> allColumnsSet) |
long |
getDiskSpaceUsed() |
org.h2gis.api.FileDriver |
getDriver() |
org.h2.result.Row |
getRow(org.h2.engine.Session session,
long key) |
long |
getRowCount(org.h2.engine.Session session) |
long |
getRowCountApproximation() |
boolean |
isRowIdIndex() |
boolean |
needRebuild() |
void |
remove(org.h2.engine.Session session) |
void |
remove(org.h2.engine.Session session,
org.h2.result.Row row) |
void |
truncate(org.h2.engine.Session session) |
canFindNext, canScan, checkIndexColumnTypes, commit, compareRows, createLookupBatch, find, findNext, getColumnIndex, getColumns, getCostRangeIndex, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getTable, getType, initBaseIndex, isFindUsingFullTableScan, isFirstColumn, isHidden, mayHaveNullDuplicates, removeChildrenAndResources, setSortedInsertModegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringpublic static final String PK_COLUMN_NAME
public H2TableIndex(org.h2gis.api.FileDriver driver,
org.h2.table.Table table,
int id)
driver - Linked file drivertable - Linked tableid - Index identifierpublic H2TableIndex(org.h2gis.api.FileDriver driver,
org.h2.table.Table table,
int id,
org.h2.table.Column PKColumn,
String indexName)
driver - Linked file drivertable - Linked tableid - Index identifierPKColumn - Primary key column declarationindexName - Unique index namepublic void checkRename()
checkRename in interface org.h2.engine.DbObjectcheckRename in class org.h2.engine.DbObjectBasepublic org.h2gis.api.FileDriver getDriver()
public org.h2.result.Row getRow(org.h2.engine.Session session,
long key)
getRow in interface org.h2.index.IndexgetRow in class org.h2.index.BaseIndexpublic void close(org.h2.engine.Session session)
public void add(org.h2.engine.Session session,
org.h2.result.Row row)
public void remove(org.h2.engine.Session session,
org.h2.result.Row row)
public org.h2.index.Cursor find(org.h2.engine.Session session,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last)
public double getCost(org.h2.engine.Session session,
int[] masks,
org.h2.table.TableFilter[] tableFilters,
int filter,
org.h2.result.SortOrder sortOrder,
HashSet<org.h2.table.Column> allColumnsSet)
public void remove(org.h2.engine.Session session)
public void truncate(org.h2.engine.Session session)
public boolean canGetFirstOrLast()
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session session,
boolean first)
public boolean needRebuild()
public long getRowCount(org.h2.engine.Session session)
public long getRowCountApproximation()
public long getDiskSpaceUsed()
public boolean isRowIdIndex()
isRowIdIndex in interface org.h2.index.IndexisRowIdIndex in class org.h2.index.BaseIndexCopyright © 2019 CNRS. All rights reserved.