git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/TextCollection@419
3cdefd35-fc62-479d-8e8d-
bae585ffb9ca
-TextCollection * TextCollectionBuilder::InitTextCollection()
+TextCollection * TextCollectionBuilder::InitTextCollection(char type)
{
uchar * bwt = 0;
CSA::usint length = 0;
{
uchar * bwt = 0;
CSA::usint length = 0;
}
TextCollection *result = new TCImplementation(bwt, (ulong)length,
}
TextCollection *result = new TCImplementation(bwt, (ulong)length,
- p_->samplerate, p_->numberOfTexts, p_->maxTextLength, p_->numberOfSamples);
+ p_->samplerate, p_->numberOfTexts, p_->maxTextLength, p_->numberOfSamples, type);
#define _SXSI_TextCollectionBuilder_h_
#include "TextCollection.h"
#define _SXSI_TextCollectionBuilder_h_
#include "TextCollection.h"
+#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
#include <vector>
#include <utility> // Defines std::pair.
#include "Tools.h" // Defines ulong and uchar.
#include <vector>
#include <utility> // Defines std::pair.
- * Convert to a static collection; reduces space and time complexities.
+ * Convert to a static collection.
* New texts can not be inserted after this operation.
* New texts can not be inserted after this operation.
+ *
+ * TextStorage type defaults to TYPE_PLAIN_TEXT, another
+ * possible type is TYPE_LZ_INDEX.
- TextCollection * InitTextCollection();
+ TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
struct TCBuilderRep * p_;
private:
struct TCBuilderRep * p_;