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 TypeMethodDescriptionprotected 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)
-
Method Details
-
test
public boolean test(@Nonnull io.github.mfvanek.pg.model.index.IndexBloatAware 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)
-