### YamlMime:JavaType
uid: "com.azure.spring.data.cosmos.core.query.CosmosQuery"
fullName: "com.azure.spring.data.cosmos.core.query.CosmosQuery"
name: "CosmosQuery"
nameWithType: "CosmosQuery"
summary: "Class for cosmos query"
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public class **CosmosQuery**"
constructors:
- uid: "com.azure.spring.data.cosmos.core.query.CosmosQuery.CosmosQuery(com.azure.spring.data.cosmos.core.query.Criteria)"
fullName: "com.azure.spring.data.cosmos.core.query.CosmosQuery.CosmosQuery(Criteria criteria)"
name: "CosmosQuery(Criteria criteria)"
nameWithType: "CosmosQuery.CosmosQuery(Criteria criteria)"
summary: "Initialization"
parameters:
- description: "object"
name: "criteria"
type: ""
syntax: "public CosmosQuery(Criteria criteria)"
desc: "Initialization"
methods:
- uid: "com.azure.spring.data.cosmos.core.query.CosmosQuery.getPartitionKeyValue(java.lang.Class)"
fullName: "com.azure.spring.data.cosmos.core.query.CosmosQuery.getPartitionKeyValue(Class domainType)"
name: "getPartitionKeyValue(Class domainType)"
nameWithType: "CosmosQuery.getPartitionKeyValue(Class domainType)"
summary: "Returns partition key value based on the criteria."
parameters:
- description: "domain type"
name: "domainType"
type: "Class<>"
syntax: "public Optional