public static boolean isNotEmpty(DefaultConstraint info) {
    return info != null && !info.getDefaultConstraints().isEmpty();
  }
DefaultConstraintInfo is a metadata structure containing the default constraints
associated with a table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultConstraint.java