@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
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. |
computeBulkLoadSize, shouldCheckBulkLoads
areCompactionsDisabled, getFileSize, getQuotaSnapshot, getRegionServerServices, getTableName, initialize, setQuotaSnapshot, setRegionServerServices, setTableName
public NoInsertsViolationPolicyEnforcement()
public void enable()
SpaceViolationPolicyEnforcement
enable
in interface SpaceViolationPolicyEnforcement
enable
in class DefaultViolationPolicyEnforcement
public void disable()
SpaceViolationPolicyEnforcement
disable
in interface SpaceViolationPolicyEnforcement
disable
in class DefaultViolationPolicyEnforcement
public void check(Mutation m) throws SpaceLimitingException
SpaceViolationPolicyEnforcement
Mutation
against this
policy. If the
Mutation
violates the policy, this policy should throw a
SpaceLimitingException
.check
in interface SpaceViolationPolicyEnforcement
check
in class DefaultViolationPolicyEnforcement
SpaceLimitingException
- When the given mutation violates this policy.public String getPolicyName()
SpaceViolationPolicyEnforcement
SpaceViolationPolicy
that this enforcement is for.getPolicyName
in interface SpaceViolationPolicyEnforcement
getPolicyName
in class DefaultViolationPolicyEnforcement
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.