Enum Class Diagnostic

java.lang.Object
java.lang.Enum<Diagnostic>
io.github.mfvanek.pg.common.maintenance.Diagnostic
All Implemented Interfaces:
Serializable, Comparable<Diagnostic>, Constable

public enum Diagnostic extends Enum<Diagnostic>
A list of all supported diagnostics with corresponding sql queries and query executors.
See Also:
  • Enum Constant Details

    • BLOATED_INDEXES

      public static final Diagnostic BLOATED_INDEXES
    • BLOATED_TABLES

      public static final Diagnostic BLOATED_TABLES
    • DUPLICATED_INDEXES

      public static final Diagnostic DUPLICATED_INDEXES
    • FOREIGN_KEYS_WITHOUT_INDEX

      public static final Diagnostic FOREIGN_KEYS_WITHOUT_INDEX
    • INDEXES_WITH_NULL_VALUES

      public static final Diagnostic INDEXES_WITH_NULL_VALUES
    • INTERSECTED_INDEXES

      public static final Diagnostic INTERSECTED_INDEXES
    • INVALID_INDEXES

      public static final Diagnostic INVALID_INDEXES
    • TABLES_WITH_MISSING_INDEXES

      public static final Diagnostic TABLES_WITH_MISSING_INDEXES
    • TABLES_WITHOUT_PRIMARY_KEY

      public static final Diagnostic TABLES_WITHOUT_PRIMARY_KEY
    • UNUSED_INDEXES

      public static final Diagnostic UNUSED_INDEXES
    • TABLES_WITHOUT_DESCRIPTION

      public static final Diagnostic TABLES_WITHOUT_DESCRIPTION
    • COLUMNS_WITHOUT_DESCRIPTION

      public static final Diagnostic COLUMNS_WITHOUT_DESCRIPTION
    • COLUMNS_WITH_JSON_TYPE

      public static final Diagnostic COLUMNS_WITH_JSON_TYPE
    • COLUMNS_WITH_SERIAL_TYPES

      public static final Diagnostic COLUMNS_WITH_SERIAL_TYPES
  • Method Details

    • values

      public static Diagnostic[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Diagnostic valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getExecutionTopology

      @Nonnull public Diagnostic.ExecutionTopology getExecutionTopology()
    • getSqlQueryFileName

      @Nonnull public String getSqlQueryFileName()
    • getQueryExecutor

      @Nonnull public QueryExecutor getQueryExecutor()
    • isAcrossCluster

      public boolean isAcrossCluster()