public static void registerPart(Class<? extends BPPart> clazz, Object... arguments) { if (clazz == null) return; PartInfo info = new PartInfo(clazz, arguments); if (info.getType() == null) return; parts.put(info.getType(), info); }
/** * Deserialize this object, decompressing the partitions which can exceed the allowed jobConf * size. * * @see <a href="https://issues.apache.org/jira/browse/HCATALOG-453">HCATALOG-453</a> */ @SuppressWarnings("unchecked") private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); ObjectInputStream partInfoReader = new ObjectInputStream(new InflaterInputStream(ois)); partitions = (List<PartInfo>) partInfoReader.readObject(); if (partitions != null) { for (PartInfo partInfo : partitions) { if (partInfo.getTableInfo() == null) { partInfo.setTableInfo(this.tableInfo); } } } }