Skip to content

Commit a9195d3

Browse files
committed
added in -e, -n options
1 parent 9c83626 commit a9195d3

File tree

5 files changed

+108
-762
lines changed

5 files changed

+108
-762
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# PFP-Doc Change Log
22

3-
## v1.0.7 - latest
3+
## v1.0.8 - latest
4+
- Added the -e, -n options to main branch in order to be able
5+
to build out the full doc profiles along with its suffix array
6+
position.
7+
8+
## v1.0.7
49
- Updated compilation to avoid specific architecture flags
510

611
## v1.0.6

include/pfp_doc.hpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
std::fprintf(stderr, "\n");} while (0)
2929

3030
// Defintions
31-
#define PFPDOC_VERSION "1.0.7"
31+
#define PFPDOC_VERSION "1.0.8"
3232

3333
#define DOCWIDTH 2
3434
#define MAXQUEUELENGTH 1000000
@@ -94,6 +94,8 @@ struct PFPDocBuildOptions {
9494
bool use_taxcomp = false;
9595
bool use_topk = false;
9696
size_t numcolsintable = 7;
97+
size_t doc_to_extract = 0;
98+
size_t use_heuristics = true;
9799

98100
void validate() {
99101
/* checks the arguments and make sure they are valid */
@@ -107,7 +109,10 @@ struct PFPDocBuildOptions {
107109
FATAL_ERROR("Output path prefix is not in a valid directory.");
108110

109111
if (use_taxcomp && use_topk)
110-
FATAL_ERROR("taxonomic and top-k compression cannot be used together.");
112+
FATAL_ERROR("taxonomic and top-k compression cannot be used together.");
113+
114+
if (doc_to_extract > 0 && (use_taxcomp || use_topk))
115+
FATAL_ERROR("cannot extract document array when using compression.");
111116
}
112117
};
113118

0 commit comments

Comments
 (0)