你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosQueryExecution.SingleEntityExecution Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.repository.query.CosmosQueryExecution.SingleEntityExecution

Implements

public static final class CosmosQueryExecution.SingleEntityExecution
implements CosmosQueryExecution

Find operation implementation to execute a find query for a single item

Constructor Summary

Constructor Description
SingleEntityExecution(CosmosOperations operations, ReturnedType returnedType)

Creates a new instance of single-entity execution.

Method Summary

Modifier and Type Method and Description
Object execute(CosmosQuery query, Class<?> type, String collection)

Declare an execute function for different operations to call

Methods inherited from java.lang.Object

Constructor Details

SingleEntityExecution

public SingleEntityExecution(CosmosOperations operations, ReturnedType returnedType)

Creates a new instance of single-entity execution.

Parameters:

operations - the Cosmos operations
returnedType - the returned type

Method Details

execute

public Object execute(CosmosQuery query, Class<?> type, String collection)

Declare an execute function for different operations to call

Parameters:

query
type
collection

Applies to