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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newPredicateQueryEngine.PredicateQueryEngine(SortAccessor<Comparator<?>> sortAccessor) Creates a new query engine using providedaccessorfor sorting results. -
Method Summary
Modifier and TypeMethodDescriptionlongCollection<?> execute(@Nullable Predicate<?> criteria, @Nullable Comparator<?> sort, long offset, int rows, String keyspace) Methods inherited from class QueryEngine
count, execute, execute, execute, getAdapter, getRequiredAdapter, registerAdapter
-
Field Details
-
INSTANCE
-
-
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<?>>- Parameters:
criteria-sort-offset-rows-keyspace-- Returns:
-
count
- Specified by:
countin classQueryEngine<KeyValueAdapter, Predicate<?>, Comparator<?>>- Parameters:
criteria-keyspace-- Returns:
-