1/*
2 * Legal Notice
3 *
4 * This document and associated source code (the "Work") is a part of a
5 * benchmark specification maintained by the TPC.
6 *
7 * The TPC reserves all right, title, and interest to the Work as provided
8 * under U.S. and international laws, including without limitation all patent
9 * and trademark rights therein.
10 *
11 * No Warranty
12 *
13 * 1.1 TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE INFORMATION
14 * CONTAINED HEREIN IS PROVIDED "AS IS" AND WITH ALL FAULTS, AND THE
15 * AUTHORS AND DEVELOPERS OF THE WORK HEREBY DISCLAIM ALL OTHER
16 * WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED OR STATUTORY,
17 * INCLUDING, BUT NOT LIMITED TO, ANY (IF ANY) IMPLIED WARRANTIES,
18 * DUTIES OR CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
19 * PURPOSE, OF ACCURACY OR COMPLETENESS OF RESPONSES, OF RESULTS, OF
20 * WORKMANLIKE EFFORT, OF LACK OF VIRUSES, AND OF LACK OF NEGLIGENCE.
21 * ALSO, THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT,
22 * QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT
23 * WITH REGARD TO THE WORK.
24 * 1.2 IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THE WORK BE LIABLE TO
25 * ANY OTHER PARTY FOR ANY DAMAGES, INCLUDING BUT NOT LIMITED TO THE
26 * COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS
27 * OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT,
28 * INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY,
29 * OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT
30 * RELATING TO THE WORK, WHETHER OR NOT SUCH AUTHOR OR DEVELOPER HAD
31 * ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
32 *
33 * Contributors:
34 * Gradient Systems
35 */
36#ifndef QGEN_PARAMS_H
37#define QGEN_PARAMS_H
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#include "r_params.h"
44#include "release.h"
45#ifdef DECLARER
46
47option_t options[] = {
48 {"ABREVIATION", OPT_STR, 0, "build table with abreviation <s>", NULL, ""},
49 {"DELIMITER", OPT_STR | OPT_ADV, 1, "use <s> as output field separator", NULL, "|"},
50 {"DIR", OPT_STR, 2, "generate tables in directory <s>", NULL, "."},
51 {"DISTRIBUTIONS", OPT_STR | OPT_ADV, 3, "read distributions from file <s>", NULL, "third_party/dsdgen/tpcds.idx"},
52 {"FORCE", OPT_FLG | OPT_ADV, 4, "over-write data files without prompting", NULL, "N"},
53 {"HELP", OPT_INT, 5, "display this message", usage, "0"},
54 {"PARAMS", OPT_STR, 6, "read parameters from file <s>", read_file, ""},
55 {"PROG", OPT_STR | OPT_HIDE | OPT_SET, 7, "DO NOT MODIFY", NULL, "dsdgen"},
56 {"QUIET", OPT_FLG, 8, "disable all output to stdout/stderr", NULL, "N"},
57 {"SCALE", OPT_INT, 9, "volume of data to generate in GB", SetScaleIndex, "1"},
58 {"SUFFIX", OPT_STR | OPT_ADV, 10, "use <s> as output file suffix", NULL, ".dat"},
59 {"TABLE", OPT_STR, 11, "build only table <s>", NULL, "ALL"},
60 {"TERMINATE", OPT_FLG | OPT_ADV, 12, "end each record with a field delimiter", NULL, "Y"},
61 {"UPDATE", OPT_INT, 13, "generate update data set <n>", NULL, ""},
62 {"VERBOSE", OPT_FLG, 14, "enable verbose output", NULL, "N"},
63 {"_SCALE_INDEX", OPT_INT | OPT_HIDE, 15, "Scale band; used for dist lookups", NULL, "1"},
64 {"PARALLEL", OPT_INT, 16, "build data in <n> separate chunks", NULL, ""},
65 {"CHILD", OPT_INT, 17, "generate <n>th chunk of the parallelized data", NULL, "1"},
66 {"CHKSEEDS", OPT_FLG | OPT_HIDE, 18, "validate RNG usage for parallelism", NULL, "N"},
67 {"RELEASE", OPT_FLG, 19, "display the release information", printReleaseInfo, "N"},
68 {"_FILTER", OPT_FLG, 20, "output data to stdout", NULL, "N"},
69 {"VALIDATE", OPT_FLG, 21, "produce rows for data validation", NULL, "N"},
70 {"VCOUNT", OPT_INT | OPT_ADV, 22, "set number of validation rows to be produced", NULL, "50"},
71 {"VSUFFIX", OPT_STR | OPT_ADV, 23, "set file suffix for data validation", NULL, ".vld"},
72 {"RNGSEED", OPT_INT | OPT_ADV, 24, "set RNG seed", NULL, "19620718"},
73 {NULL}};
74
75char *params[23 + 2];
76#else
77extern option_t options[];
78extern char *params[];
79extern char *szTableNames[];
80#endif
81
82#ifdef __cplusplus
83};
84#endif
85
86#endif
87