@InterfaceAudience.Private public class NoInsertsViolationPolicyEnforcement extends DefaultViolationPolicyEnforcement
SpaceViolationPolicyEnforcement which disallows any inserts to the table. The
 enforcement counterpart to SpaceViolationPolicy.NO_INSERTS.quotaSnapshot, rss, tableName| Constructor and Description | 
|---|
| NoInsertsViolationPolicyEnforcement() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | check(Mutation m)Checks the given  Mutationagainstthispolicy. | 
| void | disable()Disables this policy. | 
| void | enable()Enables this policy. | 
| String | getPolicyName()Returns a logical name for the  SpaceViolationPolicythat this enforcement is for. | 
computeBulkLoadSize, shouldCheckBulkLoadsareCompactionsDisabled, getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableNamepublic NoInsertsViolationPolicyEnforcement()
public void enable()
SpaceViolationPolicyEnforcementenable in interface SpaceViolationPolicyEnforcementenable in class DefaultViolationPolicyEnforcementpublic void disable()
SpaceViolationPolicyEnforcementdisable in interface SpaceViolationPolicyEnforcementdisable in class DefaultViolationPolicyEnforcementpublic void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcementMutation against this policy. If the
 Mutation violates the policy, this policy should throw a
 SpaceLimitingException.check in interface SpaceViolationPolicyEnforcementcheck in class DefaultViolationPolicyEnforcementSpaceLimitingException - When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcementSpaceViolationPolicy that this enforcement is for.getPolicyName in interface SpaceViolationPolicyEnforcementgetPolicyName in class DefaultViolationPolicyEnforcementCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.