Enum Diagnostics
- java.lang.Object
-
- java.lang.Enum<Diagnostics>
-
- io.github.mfvanek.pg.index.maintenance.Diagnostics
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Diagnostics>
public enum Diagnostics extends java.lang.Enum<Diagnostics>
A list of all the supported diagnostics with corresponding sql queries.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOATED_INDEXES
BLOATED_TABLES
DUPLICATED_INDEXES
FOREIGN_KEYS_WITHOUT_INDEX
INDEXES_WITH_NULL_VALUES
INTERSECTED_INDEXES
INVALID_INDEXES
TABLES_WITH_MISSING_INDEXES
TABLES_WITHOUT_PRIMARY_KEY
UNUSED_INDEXES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSqlQueryFileName()
static Diagnostics
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Diagnostics[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOATED_INDEXES
public static final Diagnostics BLOATED_INDEXES
-
BLOATED_TABLES
public static final Diagnostics BLOATED_TABLES
-
DUPLICATED_INDEXES
public static final Diagnostics DUPLICATED_INDEXES
-
FOREIGN_KEYS_WITHOUT_INDEX
public static final Diagnostics FOREIGN_KEYS_WITHOUT_INDEX
-
INDEXES_WITH_NULL_VALUES
public static final Diagnostics INDEXES_WITH_NULL_VALUES
-
INTERSECTED_INDEXES
public static final Diagnostics INTERSECTED_INDEXES
-
INVALID_INDEXES
public static final Diagnostics INVALID_INDEXES
-
TABLES_WITH_MISSING_INDEXES
public static final Diagnostics TABLES_WITH_MISSING_INDEXES
-
TABLES_WITHOUT_PRIMARY_KEY
public static final Diagnostics TABLES_WITHOUT_PRIMARY_KEY
-
UNUSED_INDEXES
public static final Diagnostics UNUSED_INDEXES
-
-
Method Detail
-
values
public static Diagnostics[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Diagnostics c : Diagnostics.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Diagnostics valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getSqlQueryFileName
@Nonnull public java.lang.String getSqlQueryFileName()
-
-