Class IndexInformation


  • public class IndexInformation
    extends Object
    Index information.
    • Constructor Detail

      • IndexInformation

        public IndexInformation​(boolean pk,
                                boolean unique,
                                String name,
                                H2IndexType type,
                                @Nullable
                                @Nullable String keySql,
                                @Nullable
                                @Nullable Integer inlineSize)
        Parameters:
        pk - PK.
        unique - Unique.
        name - Name.
        type - Type.
        keySql - Key sql. Can be null in case columns key is not applicable for the index.
        inlineSize - Inline size. Can be null in case inline size is not applicable for the index.
    • Method Detail

      • unique

        public boolean unique()
        Returns:
        true For unique index.
      • pk

        public boolean pk()
        Returns:
        true For PK index.
      • name

        public String name()
        Returns:
        Name of index.
      • type

        public String type()
        Returns:
        Type of index.
      • keySql

        @Nullable
        public @Nullable String keySql()
        Get string representation of index key.
        Returns:
        String representation of index key. Can be null in case columns key is not applicable for the index.
      • inlineSize

        @Nullable
        public @Nullable Integer inlineSize()
        Returns:
        Inline size for the index. Can be null in case inline size is not applicable for the index.