X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TextCollection.h;h=37d5cb5ab37edb66a39e5ed8c4a36026b322cc8c;hb=663cd2f6cc5e3796d001e8c527de0aea8c8bbf68;hp=ef0eb7210e57d4d72d8af50ac1be82097f6671c0;hpb=dbd62fe27e80414b4cf4fbf512ad1910916e6967;p=SXSI%2FTextCollection.git diff --git a/TextCollection.h b/TextCollection.h index ef0eb72..37d5cb5 100644 --- a/TextCollection.h +++ b/TextCollection.h @@ -111,7 +111,7 @@ namespace SXSI * * Note: Do we need this? * Forward iterator would be really in-efficient compared to - * getText(k) and getText(k, i, j). + * getText(k). * * TODO Define and implement const_reverse_iterator. */ @@ -132,8 +132,12 @@ namespace SXSI virtual bool IsLessThan(uchar const *) const = 0; /** - * Counting queries - * + * Counting queries + * Result is the number of occurrences. + */ + virtual ulong Count(uchar const *) const = 0; + /** + * More counting queries * Result is the number of documents. */ virtual unsigned CountPrefix(uchar const *) const = 0; @@ -164,12 +168,6 @@ namespace SXSI typedef std::vector > full_result; virtual full_result FullContains(uchar const *) const = 0; - - /** - *Debug - * - */ - virtual TextPosition Lookup(TextPosition) const = 0; protected: // Protected constructor; call the static function InitTextCollection(). TextCollection() { };