projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed MakeStatic()
[SXSI/TextCollection.git]
/
TextCollection.h
diff --git
a/TextCollection.h
b/TextCollection.h
index
6a4eb1c
..
37d5cb5
100644
(file)
--- a/
TextCollection.h
+++ b/
TextCollection.h
@@
-105,13
+105,13
@@
namespace SXSI
*
* Note: Parameters i and j are text positions inside the k'th text.
*/
*
* Note: Parameters i and j are text positions inside the k'th text.
*/
- virtual uchar* GetText(DocId, TextPosition, TextPosition) const = 0;
+
//
virtual uchar* GetText(DocId, TextPosition, TextPosition) const = 0;
/**
* Returns backwards (reverse) iterator to the end of i'th text
*
* Note: Do we need this?
* Forward iterator would be really in-efficient compared to
/**
* Returns backwards (reverse) iterator to the end of i'th text
*
* 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.
*/
*
* TODO Define and implement const_reverse_iterator.
*/
@@
-132,8
+132,12
@@
namespace SXSI
virtual bool IsLessThan(uchar const *) const = 0;
/**
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;
* Result is the number of documents.
*/
virtual unsigned CountPrefix(uchar const *) const = 0;