Polishing.

Introduce default exists(…) method on KeyValueAdapter to allow for store-specific optimizations of the exists method. Lazily construct a single PartTree instance for reuse.

Refine generics.

See #386
Original pull request: #386.
This commit is contained in:
Mark Paluch
2021-12-13 10:01:33 +01:00
parent 8c32f0ae6d
commit c761ba3c6d
5 changed files with 44 additions and 10 deletions

View File

@@ -154,7 +154,7 @@ class KeyValuePartTreeQueryUnitTests {
KeyValueQuery<?> query = partTreeQuery.prepareQuery(new Object[] { "firstname" });
partTreeQuery.doExecute(new Object[] { "firstname" }, query);
verify(kvOpsMock).count(eq(query), eq(Person.class));
verify(kvOpsMock).exists(eq(query), eq(Person.class));
}
interface Repo {