@Test public void testMatchKeyWithValue() { final QueryToKeyMatcher matcher = new QueryToKeyMatcher( Query.and( queryField("f1").equalsValue(7), queryField("f2").equalsValue(11))); Match match = matcher.matchesSatisfyingQuery(keyWithValue(concatenateFields("f1", "f2", "f3", "f4"), 2)); assertEquals(MatchType.EQUALITY, match.getType()); assertEquals(Key.Evaluated.concatenate(7, 11), match.getEquality()); }
@Nonnull public Match matchesSatisfyingQuery(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression, null); }
QueryToKeyMatcher { @Nonnull public Match matchesSatisfyingQuery(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression, null); } }
QueryToKeyMatcher { @Nonnull public Match matchesSatisfyingQuery(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression, null); } QueryToKeyMatcher(@Nonnull QueryComponent rootQuery); }
QueryToKeyMatcher { @Nonnull public Match matchesSatisfyingQuery(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression, null); } QueryToKeyMatcher(@Nonnull QueryComponent rootQuery); @Nonnull Match matchesCoveringKey(@Nonnull KeyExpression expression); @Nonnull Match matchesCoveringKey(@Nonnull KeyExpression expression, @Nullable FilterSatisfiedMask filterMask); @Nonnull Match matchesSatisfyingQuery(@Nonnull KeyExpression expression); @Nonnull Match matchesSatisfyingQuery(@Nonnull KeyExpression expression, @Nullable FilterSatisfiedMask filterMask); @Nonnull @Deprecated Match matches(@Nonnull KeyExpression expression); }
QueryToKeyMatcher { @Nonnull public Match matchesSatisfyingQuery(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression, null); } QueryToKeyMatcher(@Nonnull QueryComponent rootQuery); @Nonnull Match matchesCoveringKey(@Nonnull KeyExpression expression); @Nonnull Match matchesCoveringKey(@Nonnull KeyExpression expression, @Nullable FilterSatisfiedMask filterMask); @Nonnull Match matchesSatisfyingQuery(@Nonnull KeyExpression expression); @Nonnull Match matchesSatisfyingQuery(@Nonnull KeyExpression expression, @Nullable FilterSatisfiedMask filterMask); @Nonnull @Deprecated Match matches(@Nonnull KeyExpression expression);  }