public interface Index
Table
has a list of Index
instances. Indexes can enable fast searches and ordered traversal on a
Table (for the indexed columns). These features can be utilized via an
IndexCursor
.Modifier and Type | Interface and Description |
---|---|
static interface |
Index.Column
Information about a Column in an Index
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
List<? extends Index.Column> |
getColumns() |
String |
getName() |
Index |
getReferencedIndex() |
Table |
getTable() |
boolean |
isForeignKey() |
boolean |
isPrimaryKey() |
boolean |
isRequired()
Whether or not values are required for index columns.
|
boolean |
isUnique()
Whether or not index entries must be unique.
|
CursorBuilder |
newCursor()
Convenience method for constructing a new CursorBuilder for this Index.
|
boolean |
shouldIgnoreNulls()
Whether or not
null values are actually recorded in the index. |
Table getTable()
String getName()
boolean isPrimaryKey()
boolean isForeignKey()
int getColumnCount()
List<? extends Index.Column> getColumns()
Index getReferencedIndex() throws IOException
null
.IOException
boolean shouldIgnoreNulls()
null
values are actually recorded in the index.boolean isUnique()
Some notes about uniqueness:
null
entries
invalid for a unique indexboolean isRequired()
CursorBuilder newCursor()
Copyright © 2005–2024 OpenHMS. All rights reserved.