-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADAM-1480] Add switch to disable the fast concat method. #1479
[ADAM-1480] Add switch to disable the fast concat method. #1479
Conversation
Test PASSed. |
@@ -56,6 +56,10 @@ class ADAM2VcfArgs extends Args4jBase with ParquetArgs { | |||
@Args4jOption(required = false, name = "-single", usage = "Save as a single VCF file.") | |||
var single: Boolean = false | |||
|
|||
@Args4jOption(required = false, name = "-disable_fast_concat", | |||
usage = "Disables the parallel file concatenation engine.") | |||
var disableFastConcat: Boolean = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of double-negatives; is there a better way to do args4j flags that default to true?
* If asSingleFile is true and deferMerging is false, disables the use of the | ||
* fast file concatenation engine. | ||
*/ | ||
var disableFastConcat: Boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be willing to merge this without changes. It adds more pressure towards a future refactoring of save methods for consistency though. |
9f4c33b
to
fe0b50b
Compare
Ping. |
Test PASSed. |
What I'm thinking is something like this where instead of |
I don't really see the |
Args4j can simulate mutually exclusive groups with forbids, however I don't see a way of combining two An alternative would be to use @Args4jOption
(
required = false,
name = "-fast_concat",
usage = "Enable the parallel file concatenation engine. Defaults to true.",
handler = classOf[ExplicitBooleanOptionHandler]
)
var fastConcat: Boolean = true Then these would be true
and this would be false
and this would fail
Would that be an improvement? |
Created #1503 for further discussion |
Thank you, @fnothaft! |
Resolves #1478.