Class PartTreeCosmosQuery
- java.lang.Object
-
- com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
-
- com.azure.spring.data.cosmos.repository.query.PartTreeCosmosQuery
-
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
public class PartTreeCosmosQuery extends AbstractCosmosQuery
Cosmos query class withPartTreeto parse aStringinto a tree orPartTree.OrParts consisting of simplePartinstances in turn.
-
-
Field Summary
-
Fields inherited from class com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
operations
-
-
Constructor Summary
Constructors Constructor Description PartTreeCosmosQuery(CosmosQueryMethod method, CosmosOperations operations)Initialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CosmosQuerycreateQuery(CosmosParameterAccessor accessor)Creates a query.protected booleanisCountQuery()protected booleanisDeleteQuery()protected booleanisExistsQuery()-
Methods inherited from class com.azure.spring.data.cosmos.repository.query.AbstractCosmosQuery
execute, getExecution, getQueryMethod, isCollectionQuery, isPageQuery, isSliceQuery
-
-
-
-
Constructor Detail
-
PartTreeCosmosQuery
public PartTreeCosmosQuery(CosmosQueryMethod method, CosmosOperations operations)
Initialization- Parameters:
method- CosmosQueryMethodoperations- CosmosOperations
-
-
Method Detail
-
createQuery
protected CosmosQuery createQuery(CosmosParameterAccessor accessor)
Description copied from class:AbstractCosmosQueryCreates a query.- Specified by:
createQueryin classAbstractCosmosQuery- Parameters:
accessor- Cosmos parameter accessor.- Returns:
- a Cosmos query.
-
isDeleteQuery
protected boolean isDeleteQuery()
- Specified by:
isDeleteQueryin classAbstractCosmosQuery- Returns:
- whether this is a deletion query.
-
isExistsQuery
protected boolean isExistsQuery()
- Specified by:
isExistsQueryin classAbstractCosmosQuery- Returns:
- whether this is an exists query.
-
isCountQuery
protected boolean isCountQuery()
- Specified by:
isCountQueryin classAbstractCosmosQuery- Returns:
- whether this is a count query.
-
-