Inverts the default on-disk / in-memory for obiuniq

Former-commit-id: efabee73be7c2abc5d63b69128a8ee3f7d01aa2e
This commit is contained in:
2023-11-22 07:10:03 +01:00
parent ff51cc7393
commit 8905a16bc0

View File

@ -7,7 +7,7 @@ import (
var _StatsOn = make([]string, 0, 10)
var _Keys = make([]string, 0, 10)
var _OnDisk = false
var _InMemory = false
var _chunks = 100
var _NAValue = "NA"
var _NoSingleton = false
@ -32,8 +32,8 @@ func UniqueOptionSet(options *getoptions.GetOpt) {
options.BoolVar(&_NoSingleton, "no-singleton", _NoSingleton,
options.Description("If set, sequences occurring a single time in the data set are discarded."))
options.BoolVar(&_OnDisk, "on-disk", _OnDisk,
options.Description("Allows for using a disk cache during the dereplication process. "))
options.BoolVar(&_InMemory, "in-memory", _InMemory,
options.Description("Use memory instead of disk to store data chunks."))
options.IntVar(&_chunks, "chunk-count", _chunks,
options.Description("In how many chunk the dataset is pre-devided for speeding up the process."))
@ -56,7 +56,7 @@ func CLIKeys() []string {
}
func CLIUniqueInMemory() bool {
return !_OnDisk
return _InMemory
}
func CLINumberOfChunks() int {