Package com.hazelcast.jet.core.metrics
Class MeasurementPredicates
- java.lang.Object
-
- com.hazelcast.jet.core.metrics.MeasurementPredicates
-
public final class MeasurementPredicates extends java.lang.Object
Static utility class for creating variousMeasurement
filtering predicates.- Since:
- Jet 3.2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Predicate<Measurement>
containsTag(java.lang.String tag)
Matches aMeasurement
which contain the specified tag.static java.util.function.Predicate<Measurement>
tagValueEquals(java.lang.String tag, java.lang.String value)
Matches aMeasurement
which contains the specified tag and the tag has the specified value.static java.util.function.Predicate<Measurement>
tagValueMatches(java.lang.String tag, java.lang.String valueRegexp)
Matches aMeasurement
which has this exact tag with a value matching the provided regular expression.
-
-
-
Method Detail
-
containsTag
public static java.util.function.Predicate<Measurement> containsTag(java.lang.String tag)
Matches aMeasurement
which contain the specified tag.- Parameters:
tag
- the tag of interest- Returns:
- a filtering predicate
-
tagValueEquals
public static java.util.function.Predicate<Measurement> tagValueEquals(java.lang.String tag, java.lang.String value)
Matches aMeasurement
which contains the specified tag and the tag has the specified value.- Parameters:
tag
- the tag to matchvalue
- the value the tag has to have- Returns:
- a filtering predicate
-
tagValueMatches
public static java.util.function.Predicate<Measurement> tagValueMatches(java.lang.String tag, java.lang.String valueRegexp)
Matches aMeasurement
which has this exact tag with a value matching the provided regular expression.- Parameters:
tag
- the tag to matchvalueRegexp
- regular expression to match the value against- Returns:
- a filtering predicate
-
-