Package com.azure.cosmos.models
Class CompositePath
java.lang.Object
com.azure.cosmos.models.CompositePath
Represents a composite path of the IndexingPolicy in the Azure Cosmos DB database service.
A composite path is used in a composite index. For example if you want to run a query like
"SELECT * FROM c ORDER BY c.age, c.height", then you need to add "/age" and "/height"
as composite paths to your composite index.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getOrder()
Gets the sort order for the composite path.getPath()
Gets path.int
hashCode()
setOrder
(CompositePathSortOrder order) Gets the sort order for the composite path.Sets path.
-
Constructor Details
-
CompositePath
public CompositePath()Constructor.
-
-
Method Details
-
getPath
Gets path.- Returns:
- the path.
-
setPath
Sets path.- Parameters:
path
- the path.- Returns:
- the CompositePath.
-
getOrder
Gets the sort order for the composite path.For example if you want to run the query "SELECT * FROM c ORDER BY c.age asc, c.height desc", then you need to make the order for "/age" "ascending" and the order for "/height" "descending".
- Returns:
- the sort order.
-
setOrder
Gets the sort order for the composite path.For example if you want to run the query "SELECT * FROM c ORDER BY c.age asc, c.height desc", then you need to make the order for "/age" "ascending" and the order for "/height" "descending".
- Parameters:
order
- the sort order.- Returns:
- the CompositePath.
-
equals
-
hashCode
public int hashCode()
-