Interface Index

All Known Implementing Classes:
IndexDTO, Indexes.IndexImpl

@Evolving public interface Index
The Index interface defines methods for implementing table index columns. Currently, settings for PRIMARY_KEY and UNIQUE_KEY are provided.
  • Method Details

    • 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".
    • properties

      default Map<String,String> properties()
      Returns:
      Extra properties for index configuration