Class FeatureUpdate


  • public class FeatureUpdate
    extends Object
    Encapsulates details about an update to a finalized feature.
    • Constructor Detail

      • FeatureUpdate

        @Deprecated
        public FeatureUpdate​(short maxVersionLevel,
                             boolean allowDowngrade)
        Deprecated.
        Parameters:
        maxVersionLevel - the new maximum version level for the finalized feature. a value of zero is special and indicates that the update is intended to delete the finalized feature, and should be accompanied by setting the allowDowngrade flag to true.
        allowDowngrade - - true, if this feature update was meant to downgrade the existing maximum version level of the finalized feature. Only "safe" downgrades are enabled with this boolean. See FeatureUpdate(short, UpgradeType) - false, otherwise.
      • FeatureUpdate

        public FeatureUpdate​(short maxVersionLevel,
                             FeatureUpdate.UpgradeType upgradeType)
        Parameters:
        maxVersionLevel - The new maximum version level for the finalized feature. a value of zero is special and indicates that the update is intended to delete the finalized feature, and should be accompanied by setting the upgradeType to safe or unsafe.
        upgradeType - Indicate what kind of upgrade should be performed in this operation. - UPGRADE: upgrading the feature level - SAFE_DOWNGRADE: only downgrades which do not result in metadata loss are permitted - UNSAFE_DOWNGRADE: any downgrade, including those which may result in metadata loss, are permitted