private void writeObject(ObjectOutputStream oos)
      throws IOException {
    dedupWithTableInfo();
    oos.defaultWriteObject();
    restoreLocalInfoFromTableInfo();
  }
Serialization method used by java serialization.
Suppresses serialization of redundant information that's already available from
TableInfo before writing out, so as to minimize amount of serialized space but
restore it back before returning, so that PartInfo object is still usable afterwards
(See HIVE-8485 and HIVE-11344 for details.)
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/PartInfo.java