in backup-command/src/main/java/org/apache/iotdb/backup/command/ImportTool.java [211:257]
private static void parseSpecialParams(CommandLine commandLine) {
timeZoneID = commandLine.getOptionValue(TIME_ZONE_ARGS);
fileFloder = commandLine.getOptionValue(FILE_FLODER_ARGS);
if (!fileFloder.endsWith("/") && !fileFloder.endsWith("\\")) {
fileFloder += File.separator;
}
String compressAlgorithm = commandLine.getOptionValue(COMPRESS_ARGS);
if ("snappy".equals(compressAlgorithm)) {
compressEnum = CompressEnum.SNAPPY;
} else if ("gzip".equals(compressAlgorithm)) {
compressEnum = CompressEnum.GZIP;
} else if ("sql".equals(compressAlgorithm)) {
compressEnum = CompressEnum.SQL;
} else if ("lz4".equals(compressAlgorithm)) {
compressEnum = CompressEnum.LZ4;
} else {
compressEnum = CompressEnum.CSV;
}
String needTimeseriesStructureAlgorithm =
commandLine.getOptionValue(NEED_TIMESERIES_STRUCTURE_ARGS);
if (needTimeseriesStructureAlgorithm == null || "".equals(needTimeseriesStructureAlgorithm)) {
needTimeseriesStructure = true;
} else if ("true".equals(needTimeseriesStructureAlgorithm.trim())) {
needTimeseriesStructure = true;
} else {
needTimeseriesStructure = false;
}
String needZipCompressAlgorithm = commandLine.getOptionValue(NEED_ZIP_COMPRESS_ARGS);
if (needZipCompressAlgorithm == null || "".equals(needZipCompressAlgorithm)) {
needZipCompress = false;
} else if ("true".equals(needZipCompressAlgorithm.trim())) {
needZipCompress = true;
} else {
needZipCompress = false;
}
String charSetAlgorithm = commandLine.getOptionValue(CHAR_SET_ARGS);
if (charSetAlgorithm == null || "".equals(charSetAlgorithm)) {
charSet = "utf8";
} else {
charSet = charSetAlgorithm;
}
}