TsvSampleOptions

Container for command line options.

Members

Functions

processArgs
auto processArgs(string[] cmdArgs)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

compatibilityMode
bool compatibilityMode;

--compatibility-mode

delim
char delim;

--d|delimiter

distinctKeyIsFullLine
bool distinctKeyIsFullLine;

Derived. True if '--k|key-fields 0' is specfied.

files
string[] files;

Input files

genRandomInorder
bool genRandomInorder;

--gen-random-inorder

hasHeader
bool hasHeader;

--H|header

hasWeightField
bool hasWeightField;

Derived.

helpVerbose
bool helpVerbose;

--help-verbose

inclusionProbability
double inclusionProbability;

--p|prob - Inclusion probability

keyFields
size_t[] keyFields;

--k|key-fields - Used with inclusion probability

preferAlgorithmR
bool preferAlgorithmR;

--prefer-algorithm-r

preferSkipSampling
bool preferSkipSampling;

--prefer-skip-sampling

printRandom
bool printRandom;

--print-random

programName
string programName;

Program name

randomValueHeader
string randomValueHeader;

--random-value-header

sampleSize
size_t sampleSize;

--n|num - Size of the desired sample

seed
uint seed;

Derived from --static-seed, --seed-value

seedValueOptionArg
uint seedValueOptionArg;

--v|seed-value

srsWithReplacement
bool srsWithReplacement;

--r|replace

staticSeed
bool staticSeed;

--s|static-seed

useBernoulliSampling
bool useBernoulliSampling;

Derived.

useDistinctSampling
bool useDistinctSampling;

Derived.

usingUnpredictableSeed
bool usingUnpredictableSeed;

Derived from --static-seed, --seed-value

versionWanted
bool versionWanted;

--V|version

weightField
size_t weightField;

--w|weight-field - Field holding the weight

Meta