Class IndexPolicyCompareService
java.lang.Object
com.azure.spring.data.cosmos.repository.support.IndexPolicyCompareService
Class for determining if the index policy currently applied to the container matches the index policy that is
specified on an entities' @CosmosIndexingPolicy annotation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
policyNeedsUpdate
(IndexingPolicy existingPolicy, IndexingPolicy newPolicy) Whether the policy needs updating.
-
Constructor Details
-
IndexPolicyCompareService
public IndexPolicyCompareService()
-
-
Method Details
-
policyNeedsUpdate
Whether the policy needs updating.- Parameters:
existingPolicy
- Existing policynewPolicy
- New policy- Returns:
- Whether the policy needs updating.
-