public Set fetchAllLocalKeys(Integer id, Set<Integer> failures, String regex) { Set result = new HashSet(); try { Set keys = null; if (regex != null) { keys = this.dataStore.handleRemoteGetKeys(id, InterestType.REGULAR_EXPRESSION, regex, true); } else { keys = this.dataStore.getKeysLocally(id, true); } result.addAll(keys); } catch (ForceReattemptException ignore) { failures.add(id); } catch (PRLocallyDestroyedException ignore) { failures.add(id); } return result; }
ret = this.dataStore.getKeysLocally(buck, allowTombstones); } else { FetchKeysResponse r = FetchKeysMessage.send(nod, this, buck, allowTombstones);