@Override public boolean exists(Supplier<NodeBuilder> index, String key) { return strategy.exists(index, key); }
@Override public boolean exists(Supplier<NodeBuilder> index, String key) { return strategy.exists(index, key); }
@Override public boolean exists(Supplier<NodeBuilder> index, String key) { return strategy.exists(index, key); }
/** * From a set of keys, get those that already exist in the index. * * @param keys the keys * @param index the index * @param s the index store strategy * @return the set of keys that already exist in this unique index */ private Set<String> getExistingKeys(Set<String> keys, Supplier<NodeBuilder> index, IndexStoreStrategy s) { Set<String> existing = null; for (String key : keys) { if (s.exists(index, key)) { if (existing == null) { existing = newHashSet(); } existing.add(key); } } if (existing == null) { existing = Collections.emptySet(); } return existing; }
/** * From a set of keys, get those that already exist in the index. * * @param keys the keys * @param index the index * @param s the index store strategy * @return the set of keys that already exist in this unique index */ private Set<String> getExistingKeys(Set<String> keys, Supplier<NodeBuilder> index, IndexStoreStrategy s) { Set<String> existing = null; for (String key : keys) { if (s.exists(index, key)) { if (existing == null) { existing = newHashSet(); } existing.add(key); } } if (existing == null) { existing = Collections.emptySet(); } return existing; }
/** * From a set of keys, get those that already exist in the index. * * @param keys the keys * @param index the index * @param s the index store strategy * @return the set of keys that already exist in this unique index */ private Set<String> getExistingKeys(Set<String> keys, Supplier<NodeBuilder> index, IndexStoreStrategy s) { Set<String> existing = null; for (String key : keys) { if (s.exists(index, key)) { if (existing == null) { existing = newHashSet(); } existing.add(key); } } if (existing == null) { existing = Collections.emptySet(); } return existing; }