| 程序包 | 说明 |
|---|---|
| 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.table |
Classes related to a table and table meta data.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected IndexType |
Index.indexType
The index type.
|
protected IndexType |
Index.indexType
The index type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static IndexType |
IndexType.createNonUnique(boolean persistent)
Create a non-unique index.
|
static IndexType |
IndexType.createNonUnique(boolean persistent)
Create a non-unique index.
|
static IndexType |
IndexType.createNonUnique(boolean persistent,
boolean hash,
boolean spatial)
Create a non-unique index.
|
static IndexType |
IndexType.createNonUnique(boolean persistent,
boolean hash,
boolean spatial)
Create a non-unique index.
|
static IndexType |
IndexType.createPrimaryKey(boolean persistent,
boolean hash)
Create a primary key index.
|
static IndexType |
IndexType.createPrimaryKey(boolean persistent,
boolean hash)
Create a primary key index.
|
static IndexType |
IndexType.createScan(boolean persistent)
Create a scan pseudo-index.
|
static IndexType |
IndexType.createScan(boolean persistent)
Create a scan pseudo-index.
|
static IndexType |
IndexType.createUnique(boolean persistent,
boolean hash)
Create a unique index.
|
static IndexType |
IndexType.createUnique(boolean persistent,
boolean hash)
Create a unique index.
|
IndexType |
Index.getIndexType()
Get the index type.
|
IndexType |
Index.getIndexType()
Get the index type.
|
| 构造器和说明 |
|---|
Index(Table newTable,
int id,
String name,
IndexColumn[] newIndexColumns,
int uniqueColumnCount,
IndexType newIndexType)
Initialize the index.
|
Index(Table newTable,
int id,
String name,
IndexColumn[] newIndexColumns,
int uniqueColumnCount,
IndexType newIndexType)
Initialize the index.
|
LinkedIndex(TableLink table,
int id,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
LinkedIndex(TableLink table,
int id,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 构造器和说明 |
|---|
MVDelegateIndex(MVTable table,
int id,
String name,
MVPrimaryIndex mainIndex,
IndexType indexType) |
MVDelegateIndex(MVTable table,
int id,
String name,
MVPrimaryIndex mainIndex,
IndexType indexType) |
MVIndex(Table newTable,
int id,
String name,
IndexColumn[] newIndexColumns,
int uniqueColumnCount,
IndexType newIndexType) |
MVIndex(Table newTable,
int id,
String name,
IndexColumn[] newIndexColumns,
int uniqueColumnCount,
IndexType newIndexType) |
MVPrimaryIndex(Database db,
MVTable table,
int id,
IndexColumn[] columns,
IndexType indexType) |
MVPrimaryIndex(Database db,
MVTable table,
int id,
IndexColumn[] columns,
IndexType indexType) |
MVSecondaryIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
MVSecondaryIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType) |
MVSpatialIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType)
Constructor.
|
MVSpatialIndex(Database db,
MVTable table,
int id,
String indexName,
IndexColumn[] columns,
int uniqueColumnCount,
IndexType indexType)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
static int |
TableBase.getMainIndexColumn(IndexType indexType,
IndexColumn[] cols)
Returns main index column if index is an primary key index and has only
one column with _ROWID_ compatible data type.
|
static int |
TableBase.getMainIndexColumn(IndexType indexType,
IndexColumn[] cols)
Returns main index column if index is an primary key index and has only
one column with _ROWID_ compatible data type.
|
Copyright © 2022. All rights reserved.