Class FilterIndexesByBloatPredicate

java.lang.Object
io.github.mfvanek.pg.checks.predicates.FilterIndexesByBloatPredicate
All Implemented Interfaces:
Predicate<io.github.mfvanek.pg.model.index.IndexBloatAware>

public class FilterIndexesByBloatPredicate extends Object implements Predicate<io.github.mfvanek.pg.model.index.IndexBloatAware>
Allows filter indexes by their bloat.
Since:
0.6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isOk(io.github.mfvanek.pg.model.BloatAware bloatAware)
     
    static Predicate<io.github.mfvanek.pg.model.index.IndexBloatAware>
    of(long sizeThresholdInBytes, int percentageThreshold)
     
    boolean
    test(io.github.mfvanek.pg.model.index.IndexBloatAware indexBloatAware)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • test

      public boolean test(@Nonnull io.github.mfvanek.pg.model.index.IndexBloatAware indexBloatAware)
      Specified by:
      test in interface Predicate<io.github.mfvanek.pg.model.index.IndexBloatAware>
    • of

      @Nonnull public static Predicate<io.github.mfvanek.pg.model.index.IndexBloatAware> of(long sizeThresholdInBytes, int percentageThreshold)
    • isOk

      protected boolean isOk(@Nonnull io.github.mfvanek.pg.model.BloatAware bloatAware)