From 2b563debbf8ba22e72592de779baaa57453347c4 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Mon, 27 May 2013 13:45:09 +0200 Subject: [PATCH] javadoc of new multiple-exist test --- source/net/yacy/search/index/Fulltext.java | 6 ++++++ source/net/yacy/search/index/Segment.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/source/net/yacy/search/index/Fulltext.java b/source/net/yacy/search/index/Fulltext.java index b05512095..54c5d8694 100644 --- a/source/net/yacy/search/index/Fulltext.java +++ b/source/net/yacy/search/index/Fulltext.java @@ -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 exists(Collection ids) { HashSet e = new HashSet(); if (ids == null || ids.size() == 0) return e; diff --git a/source/net/yacy/search/index/Segment.java b/source/net/yacy/search/index/Segment.java index bd10a7ab1..d32b2e6e1 100644 --- a/source/net/yacy/search/index/Segment.java +++ b/source/net/yacy/search/index/Segment.java @@ -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 exists(final Collection ids) { return this.fulltext.exists(ids); }