@InterfaceAudience.Private public class NoInsertsViolationPolicyEnforcement extends DefaultViolationPolicyEnforcement
SpaceViolationPolicyEnforcement which disallows any inserts to the table. The
enforcement counterpart to SpaceViolationPolicy.NO_INSERTS.| 构造器和说明 |
|---|
NoInsertsViolationPolicyEnforcement() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check(Mutation m)
Checks the given
Mutation against this policy. |
void |
disable()
Disables this policy.
|
void |
enable()
Enables this policy.
|
String |
getPolicyName()
Returns a logical name for the
SpaceViolationPolicy that this enforcement is for. |
checkBulkLoad, shouldCheckBulkLoadsareCompactionsDisabled, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableNamepublic void enable()
SpaceViolationPolicyEnforcementenable 在接口中 SpaceViolationPolicyEnforcementenable 在类中 DefaultViolationPolicyEnforcementpublic void disable()
SpaceViolationPolicyEnforcementdisable 在接口中 SpaceViolationPolicyEnforcementdisable 在类中 DefaultViolationPolicyEnforcementpublic void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcementMutation against this policy. If the
Mutation violates the policy, this policy should throw a
SpaceLimitingException.check 在接口中 SpaceViolationPolicyEnforcementcheck 在类中 DefaultViolationPolicyEnforcementSpaceLimitingException - When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcementSpaceViolationPolicy that this enforcement is for.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.