public class HazelcastQueryEngine extends org.springframework.data.keyvalue.core.QueryEngine<HazelcastKeyValueAdapter,com.hazelcast.query.Predicate<?,?>,Comparator<Map.Entry<?,?>>>
Implementation of findBy*() and countBy*{} queries.
| Constructor and Description |
|---|
HazelcastQueryEngine() |
| Modifier and Type | Method and Description |
|---|---|
long |
count(com.hazelcast.query.Predicate<?,?> criteria,
String keyspace)
Execute
countBy*() queries against a Hazelcast map. |
Collection<?> |
execute(com.hazelcast.query.Predicate<?,?> criteria,
Comparator<Map.Entry<?,?>> sort,
long offset,
int rows,
String keyspace)
Construct the final query predicate for Hazelcast to execute, from the base query plus any paging and sorting.
|
public Collection<?> execute(com.hazelcast.query.Predicate<?,?> criteria, Comparator<Map.Entry<?,?>> sort, long offset, int rows, String keyspace)
Construct the final query predicate for Hazelcast to execute, from the base query plus any paging and sorting.
Variations here allow the base query predicate to be omitted, sorting to be omitted, and paging to be omitted.
execute in class org.springframework.data.keyvalue.core.QueryEngine<HazelcastKeyValueAdapter,com.hazelcast.query.Predicate<?,?>,Comparator<Map.Entry<?,?>>>criteria - Search criteria, null means match everythingsort - Possibly null collationoffset - Start point of returned page, -1 if not usedrows - Size of page, -1 if not usedkeyspace - The map namepublic long count(com.hazelcast.query.Predicate<?,?> criteria,
String keyspace)
Execute countBy*() queries against a Hazelcast map.
count in class org.springframework.data.keyvalue.core.QueryEngine<HazelcastKeyValueAdapter,com.hazelcast.query.Predicate<?,?>,Comparator<Map.Entry<?,?>>>criteria - Predicate to use, not nullkeyspace - The map nameCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.