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
ConstructorsConstructorDescriptionCreates a newPredicateQueryEngine.PredicateQueryEngine(SortAccessor<Comparator<?>> sortAccessor) Creates a new query engine using providedaccessorfor sorting results. -
Method Summary
Modifier and TypeMethodDescriptionlongCollection<?>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 providedaccessorfor sorting results.
-
-
Method Details
-
execute
public Collection<?> execute(@Nullable Predicate<?> criteria, @Nullable Comparator<?> sort, long offset, int rows, String keyspace) - Specified by:
executein classQueryEngine<KeyValueAdapter,Predicate<?>, Comparator<?>> - Returns:
-
count
- Specified by:
countin classQueryEngine<KeyValueAdapter,Predicate<?>, Comparator<?>> - Returns:
-