|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Index
Access database index definition. A 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.
| Nested Class Summary | |
|---|---|
static interface |
Index.Column
Information about a Column in an Index |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Table getTable()
String getName()
boolean isPrimaryKey()
boolean isForeignKey()
int getColumnCount()
List<? extends Index.Column> getColumns()
Index getReferencedIndex()
throws IOException
null.
IOExceptionboolean shouldIgnoreNulls()
null values are actually recorded in the index.
boolean isUnique()
Some notes about uniqueness:
null entries
invalid for a unique index
boolean isRequired()
CursorBuilder newCursor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||