Class FilterTablesByBloatPredicate
java.lang.Object
io.github.mfvanek.pg.checks.predicates.FilterTablesByBloatPredicate
- All Implemented Interfaces:
Predicate<io.github.mfvanek.pg.model.table.TableBloatAware>
public class FilterTablesByBloatPredicate
extends Object
implements Predicate<io.github.mfvanek.pg.model.table.TableBloatAware>
Allows filter tables 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.table.TableBloatAware>
of
(long sizeThresholdInBytes, int percentageThreshold) boolean
test
(io.github.mfvanek.pg.model.table.TableBloatAware tableBloatAware)
-
Method Details
-
test
public boolean test(@Nonnull io.github.mfvanek.pg.model.table.TableBloatAware tableBloatAware) -
of
@Nonnull public static Predicate<io.github.mfvanek.pg.model.table.TableBloatAware> of(long sizeThresholdInBytes, int percentageThreshold) -
isOk
protected boolean isOk(@Nonnull io.github.mfvanek.pg.model.BloatAware bloatAware)
-