102 options.addOption(
"r",
true,
"Row Load Limit");
105 options.addOption(Option.builder(
"h").desc(
"help message").longOpt(
"help").build());
107 Option.builder(
"u").hasArg().desc(
"HEAVYAI User").longOpt(
"user").build());
108 options.addOption(Option.builder(
"p")
110 .desc(
"HEAVYAI Password")
114 OptionGroup transport_grp =
new OptionGroup();
115 transport_grp.addOption(Option.builder()
116 .desc(
"use binary transport to connect to HEAVYAI ")
119 transport_grp.addOption(Option.builder()
120 .desc(
"use http transport to connect to HEAVYAI ")
123 transport_grp.addOption(Option.builder()
124 .desc(
"use https transport to connect to HEAVYAI ")
127 options.addOptionGroup(transport_grp);
130 options.addOption(Option.builder(
"s")
132 .desc(
"HEAVYAI Server")
135 options.addOption(Option.builder(
"db")
137 .desc(
"HEAVYAI Database")
141 Option.builder().hasArg().desc(
"HEAVYAI Port").longOpt(
"port").build());
144 options.addOption(Option.builder()
146 .desc(
"CA certificate trust store")
147 .longOpt(
"ca-trust-store")
149 options.addOption(Option.builder()
151 .desc(
"CA certificate trust store password")
152 .longOpt(
"ca-trust-store-passwd")
156 .desc(
"Insecure TLS - do not validate server HEAVYAI server credentials")
161 options.addOption(Option.builder(
"d")
163 .desc(
"JDBC driver class")
166 options.addOption(Option.builder(
"c")
168 .desc(
"JDBC Connection string")
169 .longOpt(
"jdbcConnect")
172 options.addOption(Option.builder(
"su")
175 .longOpt(
"sourceUser")
178 options.addOption(Option.builder(
"sp")
180 .desc(
"Source Password")
181 .longOpt(
"sourcePasswd")
184 options.addOption(Option.builder(
"ss")
186 .desc(
"SQL Select statement")
191 options.addOption(Option.builder(
"t")
193 .desc(
"HEAVYAI Target Table")
194 .longOpt(
"targetTable")
198 options.addOption(Option.builder(
"b")
200 .desc(
"transfer buffer size")
201 .longOpt(
"bufferSize")
203 options.addOption(Option.builder(
"f")
205 .desc(
"table fragment size")
206 .longOpt(
"fragmentSize")
209 options.addOption(Option.builder(
"tr")
210 .desc(
"Truncate table if it exists")
214 options.addOption(Option.builder(
"i")
216 .desc(
"File containing init command for DB")
217 .longOpt(
"initializeFile")
221 Option.builder(
"adtf")
222 .desc(
"Allow double to float conversion, note precision will be reduced")
223 .longOpt(
"AllowDoubleToFloat")
227 Option.builder(
"ain")
228 .desc(
"Allow conversion from bigger integer types to smaller. Overflow might occur, "
229 +
"use it only when casting is impossible")
230 .longOpt(
"AllowIntegerNarrowing")
233 options.addOption(Option.builder(
"nlj")
234 .desc(
"Omit JDBC connection string from logs.")
235 .longOpt(
"no-log-jdbc-connection-string")