public static boolean isEmptyQuota(final Quotas quotas) {
    boolean hasSettings = false;
    hasSettings |= quotas.hasThrottle();
    hasSettings |= quotas.hasBypassGlobals();
    // Only when there is a space quota, make sure there's actually both fields provided
    // Otherwise, it's a noop.
    if (quotas.hasSpace()) {
      hasSettings |= (quotas.getSpace().hasSoftLimit() && quotas.getSpace().hasViolationPolicy());
    }
    return !hasSettings;
  }
Returns the current space quota snapshot of the given {@code tableName} from
{@code QuotaTableUtil.QUOTA_TABLE_NAME} or null if the no quota information is available for
that tableName.
@param conn      connection to re-use
@param tableName name of the table whose current snapshot is to be retreived
hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaTableUtil.java