Class Exclusions.Builder

  • Enclosing class:
    Exclusions

    public static class Exclusions.Builder
    extends java.lang.Object
    • Method Detail

      • withDuplicatedIndexesExclusions

        public Exclusions.Builder withDuplicatedIndexesExclusions​(@Nonnull
                                                                  java.lang.String duplicatedIndexesExclusions)
        Sets a list of duplicated indexes that should be excluded by IndexesHealthLogger.
        Parameters:
        duplicatedIndexesExclusions - comma-separated list of duplicated indexes, for example "idx_name_1, idx_name_2"
        Returns:
        Builder
      • withIntersectedIndexesExclusions

        public Exclusions.Builder withIntersectedIndexesExclusions​(@Nonnull
                                                                   java.lang.String intersectedIndexesExclusions)
        Sets a list of intersected indexes that should be excluded by IndexesHealthLogger.
        Parameters:
        intersectedIndexesExclusions - comma-separated list of intersected indexes, for example "idx_name_1, idx_name_2"
        Returns:
        Builder
      • withUnusedIndexesExclusions

        public Exclusions.Builder withUnusedIndexesExclusions​(@Nonnull
                                                              java.lang.String unusedIndexesExclusions)
        Sets a list of unused indexes that should be excluded by IndexesHealthLogger.
        Parameters:
        unusedIndexesExclusions - comma-separated list of unused indexes, for example "idx_name_1, idx_name_2"
        Returns:
        Builder
      • withTablesWithMissingIndexesExclusions

        public Exclusions.Builder withTablesWithMissingIndexesExclusions​(@Nonnull
                                                                         java.lang.String tablesWithMissingIndexesExclusions)
      • withTablesWithoutPrimaryKeyExclusions

        public Exclusions.Builder withTablesWithoutPrimaryKeyExclusions​(@Nonnull
                                                                        java.lang.String tablesWithoutPrimaryKeyExclusions)
      • withIndexesWithNullValuesExclusions

        public Exclusions.Builder withIndexesWithNullValuesExclusions​(@Nonnull
                                                                      java.lang.String indexesWithNullValuesExclusions)
      • withIndexSizeThreshold

        public Exclusions.Builder withIndexSizeThreshold​(long indexSizeThresholdInBytes)
      • withTableSizeThreshold

        public Exclusions.Builder withTableSizeThreshold​(long tableSizeThresholdInBytes)
      • withIndexBloatSizeThreshold

        public Exclusions.Builder withIndexBloatSizeThreshold​(long indexBloatSizeThresholdInBytes)
      • withIndexBloatPercentageThreshold

        public Exclusions.Builder withIndexBloatPercentageThreshold​(int indexBloatPercentageThreshold)
      • withTableBloatSizeThreshold

        public Exclusions.Builder withTableBloatSizeThreshold​(long tableBloatSizeThresholdInBytes)
      • withTableBloatPercentageThreshold

        public Exclusions.Builder withTableBloatPercentageThreshold​(int tableBloatPercentageThreshold)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object