Process tsv-sample command line arguments.
--compatibility-mode
--d|delimiter
Derived. True if '--k|key-fields 0' is specfied.
--gen-random-inorder
--H|header
Derived.
--p|prob - Inclusion probability
Input files
Derived: --k|key-fields - Used with inclusion probability
--line-buffered
--prefer-algorithm-r
--prefer-skip-sampling
--i|inorder
--print-random
Program name
--random-value-header
--n|num - Size of the desired sample
Derived from --static-seed, --seed-value
--v|seed-value
--r|replace
--s|static-seed
Derived.
Derived.
Derived from --static-seed, --seed-value
Derived: --w|weight-field - Field holding the weight
Container for command line options and derived data.
TsvSampleOptions handles several aspects of command line options. On the input side, it defines the command line options available, performs validation, and sets up any derived state based on the options provided. These activities are handled by the processArgs() member.
Once argument processing is complete, TsvSampleOptions is used as a container holding the specific processing options used by the different sampling routines.