/** * Returns whether or not compactions should be disabled for the given <code>tableName</code> per * a space quota violation policy. A convenience method. * * @param tableName The table to check * @return True if compactions should be disabled for the table, false otherwise. */ public boolean areCompactionsDisabled(TableName tableName) { SpaceViolationPolicyEnforcement enforcement = this.enforcedPolicies.get(Objects.requireNonNull(tableName)); if (enforcement != null) { return enforcement.areCompactionsDisabled(); } return false; }