@Test public void testMatchWithQueryableExpression() { final QueryableKeyExpression key = (QueryableKeyExpression)function("nada", concatenateFields("f1", "f2", "f3")); final QueryToKeyMatcher matcher = new QueryToKeyMatcher(Query.keyExpression(key).equalsValue("hello!")); Match match = matcher.matchesSatisfyingQuery(key); assertEquals(MatchType.EQUALITY, match.getType()); assertEquals(Key.Evaluated.scalar("hello!"), 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);  }