Skip to content

Commit

Permalink
added in -e, -n options
Browse files Browse the repository at this point in the history
  • Loading branch information
oma219 committed May 10, 2023
1 parent 9c83626 commit a9195d3
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 762 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# PFP-Doc Change Log

## v1.0.7 - latest
## v1.0.8 - latest
- Added the -e, -n options to main branch in order to be able
to build out the full doc profiles along with its suffix array
position.

## v1.0.7
- Updated compilation to avoid specific architecture flags

## v1.0.6
Expand Down
9 changes: 7 additions & 2 deletions include/pfp_doc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
std::fprintf(stderr, "\n");} while (0)

// Defintions
#define PFPDOC_VERSION "1.0.7"
#define PFPDOC_VERSION "1.0.8"

#define DOCWIDTH 2
#define MAXQUEUELENGTH 1000000
Expand Down Expand Up @@ -94,6 +94,8 @@ struct PFPDocBuildOptions {
bool use_taxcomp = false;
bool use_topk = false;
size_t numcolsintable = 7;
size_t doc_to_extract = 0;
size_t use_heuristics = true;

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

if (use_taxcomp && use_topk)
FATAL_ERROR("taxonomic and top-k compression cannot be used together.");
FATAL_ERROR("taxonomic and top-k compression cannot be used together.");

if (doc_to_extract > 0 && (use_taxcomp || use_topk))
FATAL_ERROR("cannot extract document array when using compression.");
}
};

Expand Down
Loading

0 comments on commit a9195d3

Please sign in to comment.