@Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("Check Constraints for " + databaseName + "." + tableName + ":");
    sb.append("[");
    if (checkConstraints != null && checkConstraints.size() > 0) {
      for (Map.Entry<String, List<CheckConstraintCol>> me : checkConstraints.entrySet()) {
        sb.append(" {Constraint Name: " + me.getKey() + ",");
        List<CheckConstraintCol> currCol = me.getValue();
        if (currCol != null && currCol.size() > 0) {
          for (CheckConstraintCol ukc : currCol) {
            sb.append (" (Column Name: " + ukc.colName + ", Check Expression : " + ukc.checkExpression+ "),");
          }
          sb.setLength(sb.length()-1);
        }
        sb.append("},");
      }
      sb.setLength(sb.length()-1);
    }
    sb.append("]");
    return sb.toString();
  }
CheckConstraintInfo is a metadata structure containing the Check constraints
associated with a table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckConstraint.java