Class CosmosQueryExecution.SingleEntityExecution

    • Constructor Detail

      • SingleEntityExecution

        public SingleEntityExecution​(CosmosOperations operations,
                                     org.springframework.data.repository.query.ReturnedType returnedType)
        Creates a new instance of single-entity execution.
        Parameters:
        operations - the Cosmos operations
        returnedType - the returned type
    • Method Detail

      • execute

        public Object execute​(CosmosQuery query,
                              Class<?> type,
                              String collection)
        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
        collection - container to conduct query
        Returns:
        Object according to execution result