X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TextCollection.h;h=a1d065dc28a2b9530808dca016b796cdb5f1f701;hb=181fe167b6f4ee7d383679442a371cd7c89535b6;hp=dad5c880ad4e7db431d0d6819cf49ecefe8c0105;hpb=40ddf9aca842bdc081b6350a4ebfe36b066c94c9;p=SXSI%2FTextCollection.git diff --git a/TextCollection.h b/TextCollection.h index dad5c88..a1d065d 100644 --- a/TextCollection.h +++ b/TextCollection.h @@ -25,9 +25,6 @@ #include #include // Defines std::pair. -// Default samplerate for suffix array samples -#define TEXTCOLLECTION_DEFAULT_SAMPLERATE 64 - namespace SXSI { @@ -156,7 +153,9 @@ namespace SXSI virtual document_result Equal(uchar const *) const = 0; virtual document_result Contains(uchar const *) const = 0; virtual document_result LessThan(uchar const *) const = 0; - + virtual document_result Kmismaches(uchar const *, unsigned) const = 0; + virtual document_result Kerrors(uchar const *, unsigned) const = 0; + /** * Document reporting queries for given DocId interval. */ @@ -177,6 +176,9 @@ namespace SXSI // Full reporting query for given DocId interval virtual full_result FullContains(uchar const *, DocId, DocId) const = 0; + virtual full_result FullKmismatches(uchar const *, unsigned) const = 0; + virtual full_result FullKerrors(uchar const *, unsigned) const = 0; + protected: // Protected constructor; use TextCollectionBuilder TextCollection() { };