TsvSampleOptions

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.

Members

Functions

processArgs
auto processArgs(string[] cmdArgs)

Process tsv-sample command line arguments.

Variables

compatibilityMode
bool compatibilityMode;

Undocumented in source.

delim
char delim;

Undocumented in source.

distinctKeyIsFullLine
bool distinctKeyIsFullLine;

Undocumented in source.

genRandomInorder
bool genRandomInorder;

Undocumented in source.

hasHeader
bool hasHeader;

Undocumented in source.

hasWeightField
bool hasWeightField;

Undocumented in source.

inclusionProbability
double inclusionProbability;

Undocumented in source.

inputSources
InputSourceRange inputSources;

Undocumented in source.

keyFields
size_t[] keyFields;

Undocumented in source.

lineBuffered
bool lineBuffered;

Undocumented in source.

preferAlgorithmR
bool preferAlgorithmR;

Undocumented in source.

preferSkipSampling
bool preferSkipSampling;

Undocumented in source.

preserveInputOrder
bool preserveInputOrder;

Undocumented in source.

printRandom
bool printRandom;

Undocumented in source.

programName
string programName;

Undocumented in source.

randomValueHeader
string randomValueHeader;

Undocumented in source.

sampleSize
ulong sampleSize;

Undocumented in source.

seed
uint seed;

Undocumented in source.

seedValueOptionArg
uint seedValueOptionArg;

Undocumented in source.

srsWithReplacement
bool srsWithReplacement;

Undocumented in source.

staticSeed
bool staticSeed;

Undocumented in source.

useBernoulliSampling
bool useBernoulliSampling;

Undocumented in source.

useDistinctSampling
bool useDistinctSampling;

Undocumented in source.

usingUnpredictableSeed
bool usingUnpredictableSeed;

Undocumented in source.

weightField
size_t weightField;

Undocumented in source.

Meta