Module spring.data.keyvalue
Interface SortAccessor<T>
- Type Parameters:
T-
- All Known Implementing Classes:
PathSortAccessor,SpelSortAccessor
public interface SortAccessor<T>
Resolves the
Sort object from given KeyValueQuery and potentially converts it into a store specific
representation that can be used by the QueryEngine implementation.- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionresolve(KeyValueQuery<?> query) ReadsKeyValueQuery.getSort()of givenKeyValueQueryand applies required transformation to match the desired type.
-
Method Details
-
resolve
ReadsKeyValueQuery.getSort()of givenKeyValueQueryand applies required transformation to match the desired type.- Parameters:
query- must not be null.- Returns:
- null in case
Sorthas not been defined onKeyValueQuery.
-