@Test public void testTemporarilyNoMatch() { assertNoMatch(Query.and(queryField("a").equalsValue(3), queryField("b").isEmpty()), concatenateFields("a", "b")); assertNoMatch( Query.and( queryField("a").lessThan(3), queryField("a").greaterThan(0) ), concatenateFields("a", "b")); assertNoMatch(Query.not(queryField("a").equalsValue(3)), keyField("a")); assertNoMatch(Query.or(queryField("a").equalsValue(3), queryField("b").equalsValue(4)), concatenateFields("a", "b")); assertNoMatch(Query.rank("a").equalsValue(5), keyField("a")); assertNoMatch( queryField("p").matches(Query.or(queryField("a").equalsValue(3), queryField("b").equalsValue(4))), keyField("p").nest(concatenateFields("a", "b"))); assertNoMatch( queryField("p").matches(Query.rank("a").equalsValue(5)), keyField("p").nest(keyField("a"))); assertNoMatch( queryField("p").matches(Query.not(queryField("a").equalsValue(3))), keyField("p").nest(keyField("a"))); assertNoMatch( queryField("p").matches(Query.and(queryField("a").greaterThan(3), Query.or(queryField("b").lessThan(4), queryField("b").greaterThan(5)))), keyField("p").nest(concatenateFields("a", "b"))); assertNoMatch( queryField("p").matches(Query.and( queryField("c1").equalsValue(1), queryField("c2").equalsValue(2))), concat( keyField("p").nest(keyField("c1")), keyField("p").nest(keyField("c2")))); assertNoMatch( Query.and( queryField("p").matches(queryField("c1").equalsValue(1)), queryField("p").matches(queryField("c2").equalsValue(2))), keyField("p").nest(concatenateFields("c1", "c2"))); }
@Nonnull @Deprecated public Match matches(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression); }
QueryToKeyMatcher { @Nonnull @Deprecated public Match matches(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression); } }
QueryToKeyMatcher { @Nonnull @Deprecated public Match matches(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression); } QueryToKeyMatcher(@Nonnull QueryComponent rootQuery); }
QueryToKeyMatcher { @Nonnull @Deprecated public Match matches(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression); } 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 @Deprecated public Match matches(@Nonnull KeyExpression expression) { return matchesSatisfyingQuery(expression); } 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);  }