Class PredicateQueryEngine
java.lang.Object
org.springframework.data.keyvalue.core.QueryEngine<KeyValueAdapter,Predicate<?>,Comparator<?>>
org.springframework.data.keyvalue.core.PredicateQueryEngine
QueryEngine
implementation specific for executing Predicate
based KeyValueQuery
against
KeyValueAdapter
.- Since:
- 3.3
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionCreates a newPredicateQueryEngine
.PredicateQueryEngine
(SortAccessor<Comparator<?>> sortAccessor) Creates a new query engine using providedaccessor
for sorting results. -
Method Summary
Modifier and TypeMethodDescriptionlong
Collection<?>
execute
(Predicate<?> 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
-
PredicateQueryEngine
public PredicateQueryEngine()Creates a newPredicateQueryEngine
. -
PredicateQueryEngine
Creates a new query engine using providedaccessor
for sorting results.
-
-
Method Details
-
execute
public Collection<?> execute(@Nullable Predicate<?> criteria, @Nullable Comparator<?> sort, long offset, int rows, String keyspace) - Specified by:
execute
in classQueryEngine<KeyValueAdapter,
Predicate<?>, Comparator<?>> - Returns:
-
count
- Specified by:
count
in classQueryEngine<KeyValueAdapter,
Predicate<?>, Comparator<?>> - Returns:
-