Class MatchPartitionMatcher<T extends MatchPartition>
- java.lang.Object
-
- com.apple.foundationdb.record.query.plan.temp.matchers.TypeMatcher<T>
-
- com.apple.foundationdb.record.query.plan.temp.matchers.MatchPartitionMatcher<T>
-
- Type Parameters:
T
- the type ofMatchPartition
to match against
- All Implemented Interfaces:
ExpressionMatcher<T>
public class MatchPartitionMatcher<T extends MatchPartition> extends TypeMatcher<T>
Matches a subclass ofMatchPartition
and a given matcher against the children.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.query.plan.temp.matchers.ExpressionMatcher
ExpressionMatcher.DefaultMatcher<T extends Bindable>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatchPartitionMatcher<MatchPartition>
any()
Matches anyMatchPartition
.static MatchPartitionMatcher<MatchPartition>
some(ExpressionMatcher<? extends PartialMatch> partialMatchMatcher)
-
Methods inherited from class com.apple.foundationdb.record.query.plan.temp.matchers.TypeMatcher
getChildrenMatcher, getRootClass, matchWith, matchWith, matchWith, matchWith, matchWith, matchWith, of, of, of
-
-
-
-
Method Detail
-
any
@Nonnull public static MatchPartitionMatcher<MatchPartition> any()
Matches anyMatchPartition
.- Returns:
- a matcher matching any partial match
-
some
@Nonnull public static MatchPartitionMatcher<MatchPartition> some(@Nonnull ExpressionMatcher<? extends PartialMatch> partialMatchMatcher)
- Parameters:
partialMatchMatcher
- a matcher to be applied to each individualPartialMatch
of the match partition- Returns:
- a matcher matching any partial match
-
-