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