projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Buffer size can be defined
[SXSI/TextCollection.git]
/
TextCollectionBuilder.h
diff --git
a/TextCollectionBuilder.h
b/TextCollectionBuilder.h
index
13734d2
..
9bac6f9
100644
(file)
--- a/
TextCollectionBuilder.h
+++ b/
TextCollectionBuilder.h
@@
-33,6
+33,8
@@
// Default samplerate for suffix array samples
#define TEXTCOLLECTION_DEFAULT_SAMPLERATE 64
// Default samplerate for suffix array samples
#define TEXTCOLLECTION_DEFAULT_SAMPLERATE 64
+// Default input length, used to calculate the buffer size.
+#define TEXTCOLLECTION_DEFAULT_INPUT_LENGTH (150 * 1024 * 1024)
namespace SXSI
namespace SXSI
@@
-45,7
+47,8
@@
namespace SXSI
class TextCollectionBuilder
{
public:
class TextCollectionBuilder
{
public:
- explicit TextCollectionBuilder(unsigned samplerate = TEXTCOLLECTION_DEFAULT_SAMPLERATE);
+ explicit TextCollectionBuilder(unsigned samplerate = TEXTCOLLECTION_DEFAULT_SAMPLERATE,
+ ulong estimatedInputLength = TEXTCOLLECTION_DEFAULT_INPUT_LENGTH);
~TextCollectionBuilder();
/**
~TextCollectionBuilder();
/**