Class ReactiveCosmosQueryCreator
java.lang.Object
org.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,Criteria>
com.azure.spring.data.cosmos.repository.query.ReactiveCosmosQueryCreator
public class ReactiveCosmosQueryCreator
extends org.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,Criteria>
Class for reactive cosmos query creators that create criteria based queries from a
PartTree
.-
Constructor Summary
ConstructorDescriptionReactiveCosmosQueryCreator
(org.springframework.data.repository.query.parser.PartTree tree, ReactiveCosmosParameterAccessor accessor, org.springframework.data.mapping.context.MappingContext<?, CosmosPersistentProperty> mappingContext) Creates a newReactiveCosmosQueryCreator
. -
Method Summary
Methods inherited from class org.springframework.data.repository.query.parser.AbstractQueryCreator
createQuery, createQuery
-
Constructor Details
-
ReactiveCosmosQueryCreator
public ReactiveCosmosQueryCreator(org.springframework.data.repository.query.parser.PartTree tree, ReactiveCosmosParameterAccessor accessor, org.springframework.data.mapping.context.MappingContext<?, CosmosPersistentProperty> mappingContext) Creates a newReactiveCosmosQueryCreator
.ReactiveCosmosParameterAccessor
is used to hand actual parameter values into the callback methods as well as to apply dynamic sorting via aSort
parameter.- Parameters:
tree
- must not be null.accessor
- must not be null.mappingContext
- must not be null.
-
-
Method Details
-
create
protected Criteria create(org.springframework.data.repository.query.parser.Part part, Iterator<Object> parameters) - Specified by:
create
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,
Criteria>
-
and
protected Criteria and(@NonNull org.springframework.data.repository.query.parser.Part part, @NonNull Criteria base, @NonNull Iterator<Object> parameters) - Specified by:
and
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,
Criteria>
-
or
- Specified by:
or
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,
Criteria>
-
complete
protected CosmosQuery complete(@NonNull Criteria criteria, @NonNull org.springframework.data.domain.Sort sort) - Specified by:
complete
in classorg.springframework.data.repository.query.parser.AbstractQueryCreator<CosmosQuery,
Criteria>
-