Class CosmosQueryExecution.CountExecution
java.lang.Object
com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution.CountExecution
- All Implemented Interfaces:
CosmosQueryExecution
- Enclosing interface:
CosmosQueryExecution
public static final class CosmosQueryExecution.CountExecution
extends Object
implements CosmosQueryExecution
count operation implementation to execute a count query
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution
CosmosQueryExecution.ContainerExecution, CosmosQueryExecution.CountExecution, CosmosQueryExecution.DeleteExecution, CosmosQueryExecution.ExistsExecution, CosmosQueryExecution.MultiEntityExecution, CosmosQueryExecution.PagedExecution, CosmosQueryExecution.SingleEntityExecution, CosmosQueryExecution.SliceExecution -
Constructor Summary
ConstructorsConstructorDescriptionCountExecution(CosmosOperations operations) Creates a new instance of count execution. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CosmosQuery query, Class<?> type, String container) Declare an execute function for different operations to call
-
Constructor Details
-
CountExecution
Creates a new instance of count execution.- Parameters:
operations- the Cosmos operations
-
-
Method Details
-
execute
Description copied from interface:CosmosQueryExecutionDeclare an execute function for different operations to call- Specified by:
executein interfaceCosmosQueryExecution- Parameters:
query- document query operationtype- domain typecontainer- container to conduct query- Returns:
- Object according to execution result
-