Class IndexPolicyCompareService
- java.lang.Object
-
- com.azure.spring.data.cosmos.repository.support.IndexPolicyCompareService
-
public class IndexPolicyCompareService extends Object
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
Constructors Constructor Description IndexPolicyCompareService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanpolicyNeedsUpdate(IndexingPolicy existingPolicy, IndexingPolicy newPolicy)Whether the policy needs updating.
-
-
-
Method Detail
-
policyNeedsUpdate
public static boolean policyNeedsUpdate(IndexingPolicy existingPolicy, IndexingPolicy newPolicy)
Whether the policy needs updating.- Parameters:
existingPolicy- Existing policynewPolicy- New policy- Returns:
- Whether the policy needs updating.
-
-