javadoc of new multiple-exist test

pull/1/head
Michael Peter Christen 12 years ago
parent c03f75ebc3
commit 2b563debbf

@ -711,6 +711,12 @@ public final class Fulltext {
return false;
}
/**
* Multiple-test for existing url hashes in the search index.
* All given ids are tested and a subset of the given ids are returned.
* @param ids
* @return a set of ids which exist in the database
*/
public Set<String> exists(Collection<String> ids) {
HashSet<String> e = new HashSet<String>();
if (ids == null || ids.size() == 0) return e;

@ -302,6 +302,12 @@ public class Segment {
return this.fulltext.exists(urlhash);
}
/**
* Multiple-test for existing url hashes in the search index.
* All given ids are tested and a subset of the given ids are returned.
* @param ids
* @return a set of ids which exist in the database
*/
public Set<String> exists(final Collection<String> ids) {
return this.fulltext.exists(ids);
}

Loading…
Cancel
Save