Lines Matching refs:itr

338   std::map<std::string, std::string>::const_iterator itr = options.find(ARG_DB);  in LDBCommand()  local
339 if (itr != options.end()) { in LDBCommand()
340 db_path_ = itr->second; in LDBCommand()
343 itr = options.find(ARG_ENV_URI); in LDBCommand()
344 if (itr != options.end()) { in LDBCommand()
345 env_uri_ = itr->second; in LDBCommand()
348 itr = options.find(ARG_CF_NAME); in LDBCommand()
349 if (itr != options.end()) { in LDBCommand()
350 column_family_name_ = itr->second; in LDBCommand()
355 itr = options.find(ARG_SECONDARY_PATH); in LDBCommand()
357 if (itr != options.end()) { in LDBCommand()
358 secondary_path_ = itr->second; in LDBCommand()
546 std::map<std::string, std::string>::const_iterator itr = in ParseIntOption() local
548 if (itr != option_map_.end()) { in ParseIntOption()
551 value = strtol(itr->second.c_str(), 0, 10); in ParseIntOption()
553 value = std::stoi(itr->second); in ParseIntOption()
575 auto itr = option_map_.find(option); in ParseStringOption() local
576 if (itr != option_map_.end()) { in ParseStringOption()
577 *value = itr->second; in ParseStringOption()
598 std::map<std::string, std::string>::const_iterator itr; in PrepareOptionsForOpenDB() local
628 itr = option_map_.find(ARG_AUTO_COMPACTION); in PrepareOptionsForOpenDB()
629 if (itr != option_map_.end()) { in PrepareOptionsForOpenDB()
630 cf_opts->disable_auto_compactions = !StringToBool(itr->second); in PrepareOptionsForOpenDB()
633 itr = option_map_.find(ARG_COMPRESSION_TYPE); in PrepareOptionsForOpenDB()
634 if (itr != option_map_.end()) { in PrepareOptionsForOpenDB()
635 std::string comp = itr->second; in PrepareOptionsForOpenDB()
752 for (std::map<std::string, std::string>::const_iterator itr = in ValidateCmdLineOptions() local
754 itr != option_map_.end(); ++itr) { in ValidateCmdLineOptions()
757 itr->first) == valid_cmd_line_options_.end()) { in ValidateCmdLineOptions()
758 fprintf(stderr, "Invalid command-line option %s\n", itr->first.c_str()); in ValidateCmdLineOptions()
763 for (std::vector<std::string>::const_iterator itr = flags_.begin(); in ValidateCmdLineOptions() local
764 itr != flags_.end(); ++itr) { in ValidateCmdLineOptions()
767 *itr) == valid_cmd_line_options_.end()) { in ValidateCmdLineOptions()
768 fprintf(stderr, "Invalid command-line flag %s\n", itr->c_str()); in ValidateCmdLineOptions()
843 std::map<std::string, std::string>::const_iterator itr = options.find(option); in ParseBooleanOption() local
844 if (itr != options.end()) { in ParseBooleanOption()
845 std::string option_val = itr->second; in ParseBooleanOption()
846 return StringToBool(itr->second); in ParseBooleanOption()
873 std::map<std::string, std::string>::const_iterator itr = local
875 if (itr != options.end()) {
877 from_ = itr->second;
880 itr = options.find(ARG_TO);
881 if (itr != options.end()) {
883 to_ = itr->second;
1063 std::map<std::string, std::string>::const_iterator itr = local
1065 if (itr != options.end()) {
1066 path_ = itr->second;
1205 std::map<std::string, std::string>::const_iterator itr = local
1207 if (itr != options.end()) {
1208 path_ = itr->second;
1410 std::map<std::string, std::string>::const_iterator itr = local
1412 if (itr != options.end()) {
1413 delim_ = itr->second;
1546 std::map<std::string, std::string>::const_iterator itr = local
1548 if (itr != options.end()) {
1550 from_ = itr->second;
1553 itr = options.find(ARG_TO);
1554 if (itr != options.end()) {
1556 to_ = itr->second;
1559 itr = options.find(ARG_MAX_KEYS);
1560 if (itr != options.end()) {
1563 max_keys_ = strtol(itr->second.c_str(), 0, 10);
1565 max_keys_ = std::stoi(itr->second);
1575 itr = options.find(ARG_COUNT_DELIM);
1576 if (itr != options.end()) {
1577 delim_ = itr->second;
1596 itr = options.find(ARG_PATH);
1597 if (itr != options.end()) {
1598 path_ = itr->second;
2279 std::map<std::string, std::string>::const_iterator itr = local
2281 if (itr != options.end()) {
2282 wal_file_ = itr->second;
2452 for (std::vector<std::pair<std::string, std::string>>::const_iterator itr = in DoCommand() local
2454 itr != key_values_.end(); ++itr) { in DoCommand()
2455 batch.Put(GetCfHandle(), itr->first, itr->second); in DoCommand()
2485 std::map<std::string, std::string>::const_iterator itr = local
2487 if (itr != options.end()) {
2488 start_key_ = itr->second;
2494 itr = options.find(ARG_TO);
2495 if (itr != options.end()) {
2496 end_key_ = itr->second;
2509 itr = options.find(ARG_MAX_KEYS);
2510 if (itr != options.end()) {
2513 max_keys_scanned_ = strtol(itr->second.c_str(), 0, 10);
2515 max_keys_scanned_ = std::stoi(itr->second);
2875 auto itr = options.find(ARG_CHECKPOINT_DIR); local
2876 if (itr != options.end()) {
2877 checkpoint_dir_ = itr->second;
2942 auto itr = options.find(ARG_NUM_THREADS); local
2943 if (itr != options.end()) {
2944 num_threads_ = std::stoi(itr->second);
2946 itr = options.find(ARG_BACKUP_ENV_URI);
2947 if (itr != options.end()) {
2948 backup_env_uri_ = itr->second;
2950 itr = options.find(ARG_BACKUP_DIR);
2951 if (itr == options.end()) {
2955 backup_dir_ = itr->second;
2958 itr = options.find(ARG_STDERR_LOG_LEVEL);
2959 if (itr != options.end()) {
2960 int stderr_log_level = std::stoi(itr->second);
3386 std::map<std::string, std::string>::const_iterator itr = local
3388 if (itr != options.end()) {
3391 max_keys_ = strtol(itr->second.c_str(), 0, 10);
3393 max_keys_ = std::stoi(itr->second);