| 程序包 | 说明 |
|---|---|
| org.h2.command.ddl |
Contains DDL (data definition language) and related SQL statements.
|
| org.h2.constraint |
Database constraints such as check constraints, unique constraints, and referential constraints.
|
| org.h2.engine |
Contains high level classes of the database and classes that don't fit in another sub-package.
|
| org.h2.index |
Various table index implementations, as well as cursors to navigate in an index.
|
| org.h2.mvstore.db |
Helper classes to use the MVStore in the H2 database.
|
| org.h2.schema |
Schema implementation and objects that are stored in a schema (for example, sequences and constants).
|
| org.h2.table |
Classes related to a table and table meta data.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AlterTableAddConstraint.setIndex(Index index) |
void |
AlterTableAddConstraint.setIndex(Index index) |
void |
AlterTableAddConstraint.setRefIndex(Index refIndex) |
void |
AlterTableAddConstraint.setRefIndex(Index refIndex) |
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
Constraint.getIndex()
Get the index of this constraint in the source table, or null if no index
is used.
|
Index |
ConstraintReferential.getIndex() |
Index |
ConstraintUnique.getIndex() |
Index |
ConstraintUnique.getIndex() |
Index |
ConstraintReferential.getIndex() |
Index |
Constraint.getIndex()
Get the index of this constraint in the source table, or null if no index
is used.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ConstraintReferential.setIndex(Index index,
boolean isOwner)
Set the index to use for this constraint.
|
void |
ConstraintUnique.setIndex(Index index,
boolean isOwner)
Set the index to use for this unique constraint.
|
void |
ConstraintUnique.setIndex(Index index,
boolean isOwner)
Set the index to use for this unique constraint.
|
void |
ConstraintReferential.setIndex(Index index,
boolean isOwner)
Set the index to use for this constraint.
|
abstract void |
Constraint.setIndexOwner(Index index)
This index is now the owner of the specified index.
|
void |
ConstraintCheck.setIndexOwner(Index index) |
void |
ConstraintDomain.setIndexOwner(Index index) |
void |
ConstraintReferential.setIndexOwner(Index index) |
void |
ConstraintUnique.setIndexOwner(Index index) |
void |
ConstraintUnique.setIndexOwner(Index index) |
void |
ConstraintReferential.setIndexOwner(Index index) |
void |
ConstraintDomain.setIndexOwner(Index index) |
void |
ConstraintCheck.setIndexOwner(Index index) |
abstract void |
Constraint.setIndexOwner(Index index)
This index is now the owner of the specified index.
|
abstract boolean |
Constraint.usesIndex(Index index)
Check if this constraint needs the specified index.
|
boolean |
ConstraintCheck.usesIndex(Index index) |
boolean |
ConstraintDomain.usesIndex(Index index) |
boolean |
ConstraintReferential.usesIndex(Index idx) |
boolean |
ConstraintUnique.usesIndex(Index idx) |
boolean |
ConstraintUnique.usesIndex(Index idx) |
boolean |
ConstraintReferential.usesIndex(Index idx) |
boolean |
ConstraintDomain.usesIndex(Index index) |
boolean |
ConstraintCheck.usesIndex(Index index) |
abstract boolean |
Constraint.usesIndex(Index index)
Check if this constraint needs the specified index.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
SessionLocal.findLocalTempTableIndex(String name)
Get the local temporary index if one exists with that name, or null if
not.
|
Index |
SessionLocal.findLocalTempTableIndex(String name)
Get the local temporary index if one exists with that name, or null if
not.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HashMap<String,Index> |
SessionLocal.getLocalTempTableIndexes() |
HashMap<String,Index> |
SessionLocal.getLocalTempTableIndexes() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SessionLocal.addLocalTempTableIndex(Index index)
Add a local temporary index to this session.
|
void |
SessionLocal.addLocalTempTableIndex(Index index)
Add a local temporary index to this session.
|
void |
SessionLocal.removeLocalTempTableIndex(Index index)
Drop and remove the given local temporary index from this session.
|
void |
SessionLocal.removeLocalTempTableIndex(Index index)
Drop and remove the given local temporary index from this session.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DualIndex
An index for the DUAL table.
|
class |
LinkedIndex
A linked index is a index for a linked (remote) table.
|
class |
MetaIndex
The index implementation for meta data tables.
|
class |
QueryExpressionIndex
This object represents a virtual index for a query expression.
|
class |
RangeIndex
An index for the SYSTEM_RANGE table.
|
class |
VirtualConstructedTableIndex
An index for a virtual table that returns a result set.
|
class |
VirtualTableIndex
An base class for indexes of virtual tables.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
IndexCursor.setIndex(Index index) |
void |
IndexCursor.setIndex(Index index) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
MVDelegateIndex
An index that delegates indexing to another index.
|
class |
MVIndex<K,V>
An index that stores the data in an MVStore.
|
class |
MVPrimaryIndex
A table stored in a MVStore.
|
class |
MVSecondaryIndex
An index stored in a MVStore.
|
class |
MVSpatialIndex
This is an index based on a MVRTreeMap.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
MVTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
MVTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
MVTable.getScanIndex(SessionLocal session) |
Index |
MVTable.getScanIndex(SessionLocal session) |
| 限定符和类型 | 方法和说明 |
|---|---|
ArrayList<Index> |
MVTable.getIndexes() |
ArrayList<Index> |
MVTable.getIndexes() |
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
Schema.findIndex(SessionLocal session,
String name)
Try to find an index with this name.
|
Index |
Schema.findIndex(SessionLocal session,
String name)
Try to find an index with this name.
|
Index |
Schema.getIndex(String name)
Get the index with the given name.
|
Index |
Schema.getIndex(String name)
Get the index with the given name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Index> |
Schema.getAllIndexes() |
Collection<Index> |
Schema.getAllIndexes() |
| 限定符和类型 | 方法和说明 |
|---|---|
Index |
MetaTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
QueryExpressionTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
abstract Index |
Table.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
Index |
TableLink.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
VirtualTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
VirtualTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
TableLink.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
abstract Index |
Table.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
Index |
QueryExpressionTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
MetaTable.addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment) |
Index |
Table.findPrimaryKey()
Get the primary key index if there is one, or null if there is none.
|
Index |
Table.findPrimaryKey()
Get the primary key index if there is one, or null if there is none.
|
Index |
PlanItem.getIndex() |
Index |
TableFilter.getIndex() |
Index |
TableFilter.getIndex() |
Index |
PlanItem.getIndex() |
Index |
Table.getIndex(String indexName)
Get an index by name.
|
Index |
Table.getIndex(String indexName)
Get an index by name.
|
Index |
Table.getIndexForColumn(Column column,
boolean needGetFirstOrLast,
boolean needFindNext)
Get the index that has the given column as the first element.
|
Index |
Table.getIndexForColumn(Column column,
boolean needGetFirstOrLast,
boolean needFindNext)
Get the index that has the given column as the first element.
|
Index |
Table.getPrimaryKey() |
Index |
Table.getPrimaryKey() |
Index |
DualTable.getScanIndex(SessionLocal session) |
Index |
MetaTable.getScanIndex(SessionLocal session) |
Index |
QueryExpressionTable.getScanIndex(SessionLocal session) |
Index |
RangeTable.getScanIndex(SessionLocal session) |
abstract Index |
Table.getScanIndex(SessionLocal session)
Get the scan index to iterate through all rows.
|
Index |
TableLink.getScanIndex(SessionLocal session) |
Index |
VirtualConstructedTable.getScanIndex(SessionLocal session) |
Index |
VirtualConstructedTable.getScanIndex(SessionLocal session) |
Index |
TableLink.getScanIndex(SessionLocal session) |
abstract Index |
Table.getScanIndex(SessionLocal session)
Get the scan index to iterate through all rows.
|
Index |
RangeTable.getScanIndex(SessionLocal session) |
Index |
QueryExpressionTable.getScanIndex(SessionLocal session) |
Index |
MetaTable.getScanIndex(SessionLocal session) |
Index |
DualTable.getScanIndex(SessionLocal session) |
Index |
QueryExpressionTable.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet) |
Index |
Table.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet)
Get the scan index for this table.
|
Index |
TableView.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet) |
Index |
TableView.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet) |
Index |
Table.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet)
Get the scan index for this table.
|
Index |
QueryExpressionTable.getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet) |
| 限定符和类型 | 方法和说明 |
|---|---|
ArrayList<Index> |
MetaTable.getIndexes() |
ArrayList<Index> |
QueryExpressionTable.getIndexes() |
ArrayList<Index> |
RangeTable.getIndexes() |
abstract ArrayList<Index> |
Table.getIndexes()
Get all indexes for this table.
|
ArrayList<Index> |
TableLink.getIndexes() |
ArrayList<Index> |
VirtualTable.getIndexes() |
ArrayList<Index> |
VirtualTable.getIndexes() |
ArrayList<Index> |
TableLink.getIndexes() |
abstract ArrayList<Index> |
Table.getIndexes()
Get all indexes for this table.
|
ArrayList<Index> |
RangeTable.getIndexes() |
ArrayList<Index> |
QueryExpressionTable.getIndexes() |
ArrayList<Index> |
MetaTable.getIndexes() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
IndexHints.allowIndex(Index index)
Allow an index to be used.
|
boolean |
IndexHints.allowIndex(Index index)
Allow an index to be used.
|
void |
Table.removeIndex(Index index)
Remove the given index from the list.
|
void |
Table.removeIndex(Index index)
Remove the given index from the list.
|
void |
Table.removeIndexOrTransferOwnership(SessionLocal session,
Index index)
If the index is still required by a constraint, transfer the ownership to
it.
|
void |
Table.removeIndexOrTransferOwnership(SessionLocal session,
Index index)
If the index is still required by a constraint, transfer the ownership to
it.
|
void |
TableFilter.setIndex(Index index) |
void |
TableFilter.setIndex(Index index) |
Copyright © 2022. All rights reserved.