void assignmentsFailed(Map<Path,List<KeyExtent>> assignmentFailures) { for (Entry<Path,List<KeyExtent>> entry : assignmentFailures.entrySet()) { for (KeyExtent ke : entry.getValue()) { Integer count = getCount(ke); counts.put(ke, count - 1); } } }
void attemptingAssignments(Map<Path,List<TabletLocation>> assignments) { for (Entry<Path,List<TabletLocation>> entry : assignments.entrySet()) { for (TabletLocation tl : entry.getValue()) { Integer count = getCount(tl.tablet_extent); counts.put(tl.tablet_extent, count + 1); } } }
void assignmentsFailed(Map<Path,List<KeyExtent>> assignmentFailures) { for (Entry<Path,List<KeyExtent>> entry : assignmentFailures.entrySet()) { for (KeyExtent ke : entry.getValue()) { Integer count = getCount(ke); counts.put(ke, count - 1); } } }
void assignmentsFailed(Map<Path,List<KeyExtent>> assignmentFailures) { for (Entry<Path,List<KeyExtent>> entry : assignmentFailures.entrySet()) { for (KeyExtent ke : entry.getValue()) { Integer count = getCount(ke); counts.put(ke, count - 1); } } }
void attemptingAssignments(Map<Path,List<TabletLocation>> assignments) { for (Entry<Path,List<TabletLocation>> entry : assignments.entrySet()) { for (TabletLocation tl : entry.getValue()) { Integer count = getCount(tl.tablet_extent); counts.put(tl.tablet_extent, count + 1); } } }
void attemptingAssignments(Map<Path,List<TabletLocation>> assignments) { for (Entry<Path,List<TabletLocation>> entry : assignments.entrySet()) { for (TabletLocation tl : entry.getValue()) { Integer count = getCount(tl.tablet_extent); counts.put(tl.tablet_extent, count + 1); } } }
void tabletSplit(KeyExtent parent, Collection<KeyExtent> children) { Integer count = getCount(parent); counts.remove(parent); for (KeyExtent keyExtent : children) counts.put(keyExtent, count); }