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
  • Constructor Details

    • CountExecution

      public CountExecution(CosmosOperations operations)
      Creates a new instance of count execution.
      Parameters:
      operations - the Cosmos operations
  • Method Details

    • execute

      public Object execute(CosmosQuery query, Class<?> type, String container)
      Description copied from interface: CosmosQueryExecution
      Declare an execute function for different operations to call
      Specified by:
      execute in interface CosmosQueryExecution
      Parameters:
      query - document query operation
      type - domain type
      container - container to conduct query
      Returns:
      Object according to execution result