@Override public V put(K key, V value) { V v = this.get(key); if (v == null) { super.put(key, value); } else if (v instanceof HoodieRollingStat) { long inserts = ((HoodieRollingStat) v).getInserts(); long upserts = ((HoodieRollingStat) v).getUpserts(); long deletes = ((HoodieRollingStat) v).getDeletes(); ((HoodieRollingStat) value).addInserts(inserts); ((HoodieRollingStat) value).addUpserts(upserts); ((HoodieRollingStat) value).addDeletes(deletes); super.put(key, value); } return value; } }
inserts += stat.getValue().getInserts(); fileIdToInsertsMap.put(stat.getKey(), stat.getValue().getInserts()); fileIdToUpsertsMap.put(stat.getKey(), stat.getValue().getUpserts()); assertTrue(fileIdToUpsertsMap.containsKey(stat.getKey())); inserts += stat.getValue().getInserts(); upserts += stat.getValue().getUpserts(); upserts += stat.getValue().getUpserts();
for (Map.Entry<String, HoodieRollingStat> stat : pstat.getValue().entrySet()) { inserts += stat.getValue().getInserts(); upserts += stat.getValue().getUpserts();
for (Map.Entry<String, HoodieRollingStat> stat : pstat.getValue().entrySet()) { inserts += stat.getValue().getInserts(); upserts += stat.getValue().getUpserts(); for (Map.Entry<String, HoodieRollingStat> stat : pstat.getValue().entrySet()) { inserts += stat.getValue().getInserts(); upserts += stat.getValue().getUpserts();