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 | Class and Description |
|---|---|
| public static interface | Index.
Information about a Column in an Index |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of columns covered by this indexReturns the number of columns covered by this index. |
| public List | Returns: the Columns for this index (unmodifiable)Returns the Columns for this index (unmodifiable). |
| public String | |
| public Index | Returns: the Index referenced by this Index's ForeignKeyReference (if it has one), otherwisenull.Returns the Index referenced by this Index's ForeignKeyReference (if it has one), otherwise |
| public Table | Returns: the table to which this index belongsReturns the table to which this index belongs. |
| public boolean | Returns: true if this index backs a foreign key relationshipReturns |
| public boolean | Returns: true if this index is the primary key index for its tableReturns |
| public boolean | |
| public boolean | |
| public CursorBuilder | |
| public boolean |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() Returns the number of columns covered by this index.
| |
| getColumns | back to summary |
|---|---|
| public List Returns the Columns for this index (unmodifiable). | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this index.
| |
| getReferencedIndex | back to summary |
|---|---|
| public Index getReferencedIndex() throws IOException Returns the Index referenced by this Index's ForeignKeyReference (if it has one), otherwise
| |
| getTable | back to summary |
|---|---|
| public Table getTable() Returns the table to which this index belongs.
| |
| isForeignKey | back to summary |
|---|---|
| public boolean isForeignKey() Returns
| |
| isPrimaryKey | back to summary |
|---|---|
| public boolean isPrimaryKey() Returns
| |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() Whether or not values are required for index columns. | |
| isUnique | back to summary |
|---|---|
| public boolean isUnique() Whether or not index entries must be unique. Some notes about uniqueness:
| |
| newCursor | back to summary |
|---|---|
| public CursorBuilder newCursor() Convenience method for constructing a new CursorBuilder for this Index. | |
| shouldIgnoreNulls | back to summary |
|---|---|
| public boolean shouldIgnoreNulls() Whether or not | |
| Modifier and Type | Method and Description |
|---|---|
| public Column | Returns: the underlying table column referenced by this index columnReturns the underlying table column referenced by this index column. |
| public int | Returns: the position of this column within the index (not to be confused with the underlying table column's ownio.)Returns the position of this column within the index (not to be confused with the underlying table column's
own |
| public String | Returns: the name of the underlying table column, equivalent togetColumn().getName()Returns the name of the underlying table column, equivalent to |
| public boolean | Returns: true if this index column sorts in ascending order, false if descendingReturns |
| getColumn | back to summary |
|---|---|
| public Column getColumn() Returns the underlying table column referenced by this index column.
| |
| getColumnIndex | back to summary |
|---|---|
| public int getColumnIndex() Returns the position of this column within the index (not to be confused with the underlying table column's
own
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the underlying table column, equivalent to
| |
| isAscending | back to summary |
|---|---|
| public boolean isAscending() Returns
| |