public class HazelcastSortAccessor extends Object implements org.springframework.data.keyvalue.core.SortAccessor<Comparator<Map.Entry<?,?>>>
Implements sorting for Hazelcast repository queries.
Although SpelPropertyComparator would do most of the work, this is not serializable so cannot work in a
cluster. Also, do not wish to assume anything other than Hazelcast classes are available on remote nodes.
| Constructor and Description |
|---|
HazelcastSortAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Comparator<Map.Entry<?,?>> |
resolve(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query)
Sort on a sequence of fields, possibly none.
|
public Comparator<Map.Entry<?,?>> resolve(org.springframework.data.keyvalue.core.query.KeyValueQuery<?> query)
Sort on a sequence of fields, possibly none.
resolve in interface org.springframework.data.keyvalue.core.SortAccessor<Comparator<Map.Entry<?,?>>>query - If not null, will contain one of more Sort.Order objects.nullCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.