Class SpelQueryEngine
java.lang.Object
org.springframework.data.keyvalue.core.QueryEngine<KeyValueAdapter,SpelCriteria,Comparator<?>>
org.springframework.data.keyvalue.core.SpelQueryEngine
QueryEngine
implementation specific for executing SpelExpression
based KeyValueQuery
against
KeyValueAdapter
.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorDescriptionCreates a newSpelQueryEngine
.SpelQueryEngine
(SortAccessor<Comparator<?>> sortAccessor) Creates a new query engine using providedaccessor
for sorting results. -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(SpelCriteria criteria, String keyspace) Collection<?>
execute
(SpelCriteria criteria, Comparator<?> sort, long offset, int rows, String keyspace) Methods inherited from class org.springframework.data.keyvalue.core.QueryEngine
count, execute, execute, execute, getAdapter, getRequiredAdapter, registerAdapter
-
Constructor Details
-
SpelQueryEngine
public SpelQueryEngine()Creates a newSpelQueryEngine
. -
SpelQueryEngine
Creates a new query engine using providedaccessor
for sorting results.- Since:
- 3.1.10
-
-
Method Details
-
execute
public Collection<?> execute(@Nullable SpelCriteria criteria, @Nullable Comparator<?> sort, long offset, int rows, String keyspace) - Specified by:
execute
in classQueryEngine<KeyValueAdapter,
SpelCriteria, Comparator<?>> - Returns:
-
count
- Specified by:
count
in classQueryEngine<KeyValueAdapter,
SpelCriteria, Comparator<?>> - Returns:
-