@Override public void delete(Iterable<SweepableCellsRow> rows) { Multimap<SweepableCellsRow, SweepableCellsColumn> toRemove = HashMultimap.create(); Multimap<SweepableCellsRow, SweepableCellsColumnValue> result = getRowsMultimap(rows); for (Entry<SweepableCellsRow, SweepableCellsColumnValue> e : result.entries()) { toRemove.put(e.getKey(), e.getValue().getColumnName()); } delete(toRemove); }
@Override public void touch(Multimap<SweepableCellsRow, SweepableCellsColumn> values) { Multimap<SweepableCellsRow, SweepableCellsColumnValue> currentValues = get(values); put(currentValues); Multimap<SweepableCellsRow, SweepableCellsColumn> toDelete = HashMultimap.create(values); for (Map.Entry<SweepableCellsRow, SweepableCellsColumnValue> e : currentValues.entries()) { toDelete.remove(e.getKey(), e.getValue().getColumnName()); } delete(toDelete); }
@Override public void delete(Iterable<SweepableCellsRow> rows) { Multimap<SweepableCellsRow, SweepableCellsColumn> toRemove = HashMultimap.create(); Multimap<SweepableCellsRow, SweepableCellsColumnValue> result = getRowsMultimap(rows); for (Entry<SweepableCellsRow, SweepableCellsColumnValue> e : result.entries()) { toRemove.put(e.getKey(), e.getValue().getColumnName()); } delete(toRemove); }
@Override public SweepableCellsColumn apply(SweepableCellsColumnValue columnValue) { return columnValue.getColumnName(); } };
@Override public void touch(Multimap<SweepableCellsRow, SweepableCellsColumn> values) { Multimap<SweepableCellsRow, SweepableCellsColumnValue> currentValues = get(values); put(currentValues); Multimap<SweepableCellsRow, SweepableCellsColumn> toDelete = HashMultimap.create(values); for (Map.Entry<SweepableCellsRow, SweepableCellsColumnValue> e : currentValues.entries()) { toDelete.remove(e.getKey(), e.getValue().getColumnName()); } delete(toDelete); }
@Override public SweepableCellsColumn apply(SweepableCellsColumnValue columnValue) { return columnValue.getColumnName(); } };