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