private String getHCatConstString(Const con, HCatFieldSchema.Type type) {
    Object value = con.getValue();
    switch (type) {
    case DATE:
      return ((DateTime)value).toString(DateTimeFormat.forPattern("YYYY-MM-dd"));
    default:
      return con.toString();
    }
  }
Get statistics about the data to be loaded. Only input data size is implemented at this time.
hcatalog/hcatalog-pig-adapter/src/main/java/org/apache/hive/hcatalog/pig/HCatLoader.java