Class 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 Detail

      • IndexPolicyCompareService

        public IndexPolicyCompareService()
    • Method Detail

      • 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.