IndexPolicyCompareService Class
- java.
lang. Object - com.
azure. spring. data. cosmos. repository. support. IndexPolicyCompareService
- com.
public class 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
Constructor | Description |
---|---|
IndexPolicyCompareService() |
Creates an instance of IndexPolicyCompareService. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static boolean |
policyNeedsUpdate(IndexingPolicy existingPolicy, IndexingPolicy newPolicy)
Whether the policy needs updating. |
Methods inherited from java.lang.Object
Constructor Details
IndexPolicyCompareService
public IndexPolicyCompareService()
Creates an instance of IndexPolicyCompareService.
Method Details
policyNeedsUpdate
public static boolean policyNeedsUpdate(IndexingPolicy existingPolicy, IndexingPolicy newPolicy)
Whether the policy needs updating.
Parameters:
existingPolicy
- Existing policy
newPolicy
- New policy
Returns:
Whether the policy needs updating.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Java