Package org.apache.gravitino.rel.indexes
Interface Index
- All Known Implementing Classes:
IndexDTO
,Indexes.IndexImpl
The Index interface defines methods for implementing table index columns. Currently, settings for
PRIMARY_KEY and UNIQUE_KEY are provided.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The enum IndexType defines the type of the index. -
Method Summary
-
Method Details
-
type
Index.IndexType type()- Returns:
- The type of the index. eg: PRIMARY_KEY and UNIQUE_KEY.
-
name
String name()- Returns:
- The name of the index.
-
fieldNames
String[][] fieldNames()- Returns:
- The field name under the table contained in the index. it is the column names, could be "a.b.c" for nested column, but normally it could only be "a".
-