Class CountQueryGenerator
- java.lang.Object
-
- com.azure.spring.data.cosmos.core.generator.AbstractQueryGenerator
-
- com.azure.spring.data.cosmos.core.generator.CountQueryGenerator
-
- All Implemented Interfaces:
QuerySpecGenerator
public class CountQueryGenerator extends AbstractQueryGenerator implements QuerySpecGenerator
Generate count query
-
-
Constructor Summary
Constructors Constructor Description CountQueryGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlQuerySpecgenerateCosmos(CosmosQuery query)Generate the SqlQuerySpec for cosmosDB client.-
Methods inherited from class com.azure.spring.data.cosmos.core.generator.AbstractQueryGenerator
generateCosmosQuery
-
-
-
-
Method Detail
-
generateCosmos
public SqlQuerySpec generateCosmos(CosmosQuery query)
Description copied from interface:QuerySpecGeneratorGenerate the SqlQuerySpec for cosmosDB client.- Specified by:
generateCosmosin interfaceQuerySpecGenerator- Parameters:
query- tree structured query condition.- Returns:
- SqlQuerySpec executed by cosmos client.
-
-