Lines Matching refs:string

54 const std::string LDBCommand::ARG_ENV_URI = "env_uri";
55 const std::string LDBCommand::ARG_DB = "db";
56 const std::string LDBCommand::ARG_PATH = "path";
57 const std::string LDBCommand::ARG_SECONDARY_PATH = "secondary_path";
58 const std::string LDBCommand::ARG_HEX = "hex";
59 const std::string LDBCommand::ARG_KEY_HEX = "key_hex";
60 const std::string LDBCommand::ARG_VALUE_HEX = "value_hex";
61 const std::string LDBCommand::ARG_CF_NAME = "column_family";
62 const std::string LDBCommand::ARG_TTL = "ttl";
63 const std::string LDBCommand::ARG_TTL_START = "start_time";
64 const std::string LDBCommand::ARG_TTL_END = "end_time";
65 const std::string LDBCommand::ARG_TIMESTAMP = "timestamp";
66 const std::string LDBCommand::ARG_TRY_LOAD_OPTIONS = "try_load_options";
67 const std::string LDBCommand::ARG_IGNORE_UNKNOWN_OPTIONS =
69 const std::string LDBCommand::ARG_FROM = "from";
70 const std::string LDBCommand::ARG_TO = "to";
71 const std::string LDBCommand::ARG_MAX_KEYS = "max_keys";
72 const std::string LDBCommand::ARG_BLOOM_BITS = "bloom_bits";
73 const std::string LDBCommand::ARG_FIX_PREFIX_LEN = "fix_prefix_len";
74 const std::string LDBCommand::ARG_COMPRESSION_TYPE = "compression_type";
75 const std::string LDBCommand::ARG_COMPRESSION_MAX_DICT_BYTES =
77 const std::string LDBCommand::ARG_BLOCK_SIZE = "block_size";
78 const std::string LDBCommand::ARG_AUTO_COMPACTION = "auto_compaction";
79 const std::string LDBCommand::ARG_DB_WRITE_BUFFER_SIZE = "db_write_buffer_size";
80 const std::string LDBCommand::ARG_WRITE_BUFFER_SIZE = "write_buffer_size";
81 const std::string LDBCommand::ARG_FILE_SIZE = "file_size";
82 const std::string LDBCommand::ARG_CREATE_IF_MISSING = "create_if_missing";
83 const std::string LDBCommand::ARG_NO_VALUE = "no_value";
89 void DumpWalFile(Options options, std::string wal_file, bool print_header,
93 void DumpSstFile(Options options, std::string filename, bool output_hex,
101 std::vector<std::string> args; in InitFromCmdLineArgs()
120 const std::vector<std::string>& args, const Options& options, in InitFromCmdLineArgs()
133 std::vector<std::string> cmdTokens; in InitFromCmdLineArgs()
135 const std::string OPTION_PREFIX = "--"; in InitFromCmdLineArgs()
139 std::vector<std::string> splits = StringSplit(arg, '='); in InitFromCmdLineArgs()
142 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs()
146 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs()
150 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs()
322 LDBCommand::LDBCommand(const std::map<std::string, std::string>& options, in LDBCommand() argument
323 const std::vector<std::string>& flags, bool is_read_only, in LDBCommand()
324 const std::vector<std::string>& valid_cmd_line_options) in LDBCommand()
338 std::map<std::string, std::string>::const_iterator itr = options.find(ARG_DB); in LDBCommand()
375 std::string msg = s.ToString(); in OpenDB()
426 std::vector<std::string> cf_list; in OpenDB()
465 std::string msg = st.ToString(); in OpenDB()
515 std::vector<std::string> LDBCommand::BuildCmdLineOptions( in BuildCmdLineOptions()
516 std::vector<std::string> options) { in BuildCmdLineOptions()
517 std::vector<std::string> ret = {ARG_ENV_URI, in BuildCmdLineOptions()
543 const std::map<std::string, std::string>& /*options*/, in ParseIntOption() argument
544 const std::string& option, int& value, in ParseIntOption()
546 std::map<std::string, std::string>::const_iterator itr = in ParseIntOption()
573 const std::map<std::string, std::string>& /*options*/, in ParseStringOption() argument
574 const std::string& option, std::string* value) { in ParseStringOption()
598 std::map<std::string, std::string>::const_iterator itr; in PrepareOptionsForOpenDB()
635 std::string comp = itr->second; in PrepareOptionsForOpenDB()
725 bool LDBCommand::ParseKeyValue(const std::string& line, std::string* key, in ParseKeyValue()
726 std::string* value, bool is_key_hex, in ParseKeyValue()
729 if (pos != std::string::npos) { in ParseKeyValue()
752 for (std::map<std::string, std::string>::const_iterator itr = in ValidateCmdLineOptions()
763 for (std::vector<std::string>::const_iterator itr = flags_.begin(); in ValidateCmdLineOptions()
783 std::string LDBCommand::HexToString(const std::string& str) { in HexToString()
784 std::string result; in HexToString()
785 std::string::size_type len = str.length(); in HexToString()
796 std::string LDBCommand::StringToHex(const std::string& str) { in StringToHex()
797 std::string result("0x"); in StringToHex()
802 std::string LDBCommand::PrintKeyValue(const std::string& key, in PrintKeyValue()
803 const std::string& value, bool is_key_hex, in PrintKeyValue()
805 std::string result; in PrintKeyValue()
812 std::string LDBCommand::PrintKeyValue(const std::string& key, in PrintKeyValue()
813 const std::string& value, bool is_hex) { in PrintKeyValue()
817 std::string LDBCommand::HelpRangeCmdArgs() { in HelpRangeCmdArgs()
825 bool LDBCommand::IsKeyHex(const std::map<std::string, std::string>& options, in IsKeyHex() argument
826 const std::vector<std::string>& flags) { in IsKeyHex()
832 bool LDBCommand::IsValueHex(const std::map<std::string, std::string>& options, in IsValueHex() argument
833 const std::vector<std::string>& flags) { in IsValueHex()
841 const std::map<std::string, std::string>& options, in ParseBooleanOption() argument
842 const std::string& option, bool default_val) { in ParseBooleanOption()
843 std::map<std::string, std::string>::const_iterator itr = options.find(option); in ParseBooleanOption()
845 std::string option_val = itr->second; in ParseBooleanOption()
851 bool LDBCommand::StringToBool(std::string val) { in StringToBool()
865 const std::vector<std::string>& /*params*/, in CompactorCommand() argument
866 const std::map<std::string, std::string>& options, in CompactorCommand() argument
867 const std::vector<std::string>& flags) in CompactorCommand()
873 std::map<std::string, std::string>::const_iterator itr =
896 void CompactorCommand::Help(std::string& ret) { in Help()
929 const std::string DBLoaderCommand::ARG_DISABLE_WAL = "disable_wal";
930 const std::string DBLoaderCommand::ARG_BULK_LOAD = "bulk_load";
931 const std::string DBLoaderCommand::ARG_COMPACT = "compact";
934 const std::vector<std::string>& /*params*/, in DBLoaderCommand() argument
935 const std::map<std::string, std::string>& options, in DBLoaderCommand() argument
936 const std::vector<std::string>& flags) in DBLoaderCommand()
951 void DBLoaderCommand::Help(std::string& ret) { in Help()
982 std::string line; in DoCommand()
987 std::string key; in DoCommand()
988 std::string value; in DoCommand()
1012 void DumpManifestFile(Options options, std::string file, bool verbose, bool hex, in DumpManifestFile()
1015 std::string dbname("dummy"); in DumpManifestFile()
1037 const std::string ManifestDumpCommand::ARG_VERBOSE = "verbose";
1038 const std::string ManifestDumpCommand::ARG_JSON = "json";
1039 const std::string ManifestDumpCommand::ARG_PATH = "path";
1041 void ManifestDumpCommand::Help(std::string& ret) { in Help()
1051 const std::vector<std::string>& /*params*/, in ManifestDumpCommand() argument
1052 const std::map<std::string, std::string>& options, in ManifestDumpCommand() argument
1053 const std::vector<std::string>& flags) in ManifestDumpCommand()
1063 std::map<std::string, std::string>::const_iterator itr =
1075 std::string manifestfile; in DoCommand()
1083 std::vector<std::string> files; in DoCommand()
1086 std::string err_msg = s.ToString(); in DoCommand()
1092 const std::string kManifestNamePrefix = "MANIFEST-"; in DoCommand()
1093 std::string matched_file; in DoCommand()
1106 std::string fname; in DoCommand()
1107 if (pos != std::string::npos) { in DoCommand()
1127 std::string err_msg("No MANIFEST found in "); in DoCommand()
1153 const std::string& db_path, in GetLiveFilesChecksumInfoFromVersionSet()
1157 std::string dbname(db_path); in GetLiveFilesChecksumInfoFromVersionSet()
1170 std::vector<std::string> cf_name_list; in GetLiveFilesChecksumInfoFromVersionSet()
1190 const std::string FileChecksumDumpCommand::ARG_PATH = "path";
1192 void FileChecksumDumpCommand::Help(std::string& ret) { in Help()
1200 const std::vector<std::string>& /*params*/, in FileChecksumDumpCommand() argument
1201 const std::map<std::string, std::string>& options, in FileChecksumDumpCommand() argument
1202 const std::vector<std::string>& flags) in FileChecksumDumpCommand()
1205 std::map<std::string, std::string>::const_iterator itr =
1226 std::vector<std::string> checksums; in DoCommand()
1227 std::vector<std::string> checksum_func_names; in DoCommand()
1245 void ListColumnFamiliesCommand::Help(std::string& ret) { in Help()
1252 const std::vector<std::string>& /*params*/, in ListColumnFamiliesCommand() argument
1253 const std::map<std::string, std::string>& options, in ListColumnFamiliesCommand() argument
1254 const std::vector<std::string>& flags) in ListColumnFamiliesCommand()
1258 std::vector<std::string> column_families; in DoCommand()
1277 void CreateColumnFamilyCommand::Help(std::string& ret) { in Help()
1285 const std::vector<std::string>& params, in CreateColumnFamilyCommand()
1286 const std::map<std::string, std::string>& options, in CreateColumnFamilyCommand() argument
1287 const std::vector<std::string>& flags) in CreateColumnFamilyCommand()
1310 void DropColumnFamilyCommand::Help(std::string& ret) { in Help()
1318 const std::vector<std::string>& params, in DropColumnFamilyCommand()
1319 const std::map<std::string, std::string>& options, in DropColumnFamilyCommand() argument
1320 const std::vector<std::string>& flags) in DropColumnFamilyCommand()
1384 const std::string InternalDumpCommand::ARG_COUNT_ONLY = "count_only";
1385 const std::string InternalDumpCommand::ARG_COUNT_DELIM = "count_delim";
1386 const std::string InternalDumpCommand::ARG_STATS = "stats";
1387 const std::string InternalDumpCommand::ARG_INPUT_KEY_HEX = "input_key_hex";
1390 const std::vector<std::string>& /*params*/, in InternalDumpCommand() argument
1391 const std::map<std::string, std::string>& options, in InternalDumpCommand() argument
1392 const std::vector<std::string>& flags) in InternalDumpCommand()
1410 std::map<std::string, std::string>::const_iterator itr =
1435 void InternalDumpCommand::Help(std::string& ret) { in Help()
1454 std::string stats; in DoCommand()
1468 std::string rtype1, rtype2, row, val; in DoCommand()
1509 std::string key = ikey.DebugString(is_key_hex_); in DoCommand()
1510 std::string value = Slice(key_version.value).ToString(is_value_hex_); in DoCommand()
1525 const std::string DBDumperCommand::ARG_COUNT_ONLY = "count_only";
1526 const std::string DBDumperCommand::ARG_COUNT_DELIM = "count_delim";
1527 const std::string DBDumperCommand::ARG_STATS = "stats";
1528 const std::string DBDumperCommand::ARG_TTL_BUCKET = "bucket";
1531 const std::vector<std::string>& /*params*/, in DBDumperCommand() argument
1532 const std::map<std::string, std::string>& options, in DBDumperCommand() argument
1533 const std::vector<std::string>& flags) in DBDumperCommand()
1546 std::map<std::string, std::string>::const_iterator itr =
1605 void DBDumperCommand::Help(std::string& ret) { in Help()
1636 std::string fileName = GetFileNameFromPath(path_); in DoCommand()
1680 std::string stats; in DoDumpCommand()
1723 std::string rtype1, rtype2, row, val; in DoDumpCommand()
1793 std::string str = in DoDumpCommand()
1818 const std::string ReduceDBLevelsCommand::ARG_NEW_LEVELS = "new_levels";
1819 const std::string ReduceDBLevelsCommand::ARG_PRINT_OLD_LEVELS =
1823 const std::vector<std::string>& /*params*/, in ReduceDBLevelsCommand() argument
1824 const std::map<std::string, std::string>& options, in ReduceDBLevelsCommand() argument
1825 const std::vector<std::string>& flags) in ReduceDBLevelsCommand()
1840 std::vector<std::string> ReduceDBLevelsCommand::PrepareArgs( in PrepareArgs()
1841 const std::string& db_path, int new_levels, bool print_old_level) { in PrepareArgs()
1842 std::vector<std::string> ret; in PrepareArgs()
1853 void ReduceDBLevelsCommand::Help(std::string& ret) { in Help()
1949 const std::string ChangeCompactionStyleCommand::ARG_OLD_COMPACTION_STYLE =
1951 const std::string ChangeCompactionStyleCommand::ARG_NEW_COMPACTION_STYLE =
1955 const std::vector<std::string>& /*params*/, in ChangeCompactionStyleCommand() argument
1956 const std::map<std::string, std::string>& options, in ChangeCompactionStyleCommand() argument
1957 const std::vector<std::string>& flags) in ChangeCompactionStyleCommand()
1999 void ChangeCompactionStyleCommand::Help(std::string& ret) { in Help()
2028 std::string property; in DoCommand()
2029 std::string files_per_level; in DoCommand()
2107 std::string k = LDBCommand::StringToHex(key.ToString()); in commonPutMerge()
2109 std::string v = LDBCommand::StringToHex(value.ToString()); in commonPutMerge()
2189 void DumpWalFile(Options options, std::string wal_file, bool print_header, in DumpWalFile()
2219 std::string sanitized = wal_file; in DumpWalFile()
2221 if (lastslash != std::string::npos) in DumpWalFile()
2229 std::string scratch; in DumpWalFile()
2262 const std::string WALDumperCommand::ARG_WAL_FILE = "walfile";
2263 const std::string WALDumperCommand::ARG_WRITE_COMMITTED = "write_committed";
2264 const std::string WALDumperCommand::ARG_PRINT_VALUE = "print_value";
2265 const std::string WALDumperCommand::ARG_PRINT_HEADER = "header";
2268 const std::vector<std::string>& /*params*/, in WALDumperCommand() argument
2269 const std::map<std::string, std::string>& options, in WALDumperCommand() argument
2270 const std::vector<std::string>& flags) in WALDumperCommand()
2279 std::map<std::string, std::string>::const_iterator itr =
2296 void WALDumperCommand::Help(std::string& ret) { in Help()
2313 GetCommand::GetCommand(const std::vector<std::string>& params, in GetCommand()
2314 const std::map<std::string, std::string>& options, in GetCommand() argument
2315 const std::vector<std::string>& flags) in GetCommand()
2331 void GetCommand::Help(std::string& ret) { in Help()
2344 std::string value; in DoCommand()
2357 const std::vector<std::string>& /*params*/, in ApproxSizeCommand() argument
2358 const std::map<std::string, std::string>& options, in ApproxSizeCommand() argument
2359 const std::vector<std::string>& flags) in ApproxSizeCommand()
2385 void ApproxSizeCommand::Help(std::string& ret) { in Help()
2413 const std::vector<std::string>& params, in BatchPutCommand()
2414 const std::map<std::string, std::string>& options, in BatchPutCommand() argument
2415 const std::vector<std::string>& flags) in BatchPutCommand()
2427 std::string key = params.at(i);
2428 std::string value = params.at(i + 1);
2429 key_values_.push_back(std::pair<std::string, std::string>(
2437 void BatchPutCommand::Help(std::string& ret) { in Help()
2452 for (std::vector<std::pair<std::string, std::string>>::const_iterator itr = in DoCommand()
2473 ScanCommand::ScanCommand(const std::vector<std::string>& /*params*/, in ScanCommand() argument
2474 const std::map<std::string, std::string>& options, in ScanCommand() argument
2475 const std::vector<std::string>& flags) in ScanCommand()
2485 std::map<std::string, std::string>::const_iterator itr =
2503 std::vector<std::string>::const_iterator vitr =
2527 void ScanCommand::Help(std::string& ret) { in Help()
2589 std::string formatted_key; in DoCommand()
2603 std::string formatted_value; in DoCommand()
2626 DeleteCommand::DeleteCommand(const std::vector<std::string>& params, in DeleteCommand()
2627 const std::map<std::string, std::string>& options, in DeleteCommand() argument
2628 const std::vector<std::string>& flags) in DeleteCommand()
2642 void DeleteCommand::Help(std::string& ret) { in Help()
2662 const std::vector<std::string>& params, in DeleteRangeCommand()
2663 const std::map<std::string, std::string>& options, in DeleteRangeCommand() argument
2664 const std::vector<std::string>& flags) in DeleteRangeCommand()
2680 void DeleteRangeCommand::Help(std::string& ret) { in Help()
2700 PutCommand::PutCommand(const std::vector<std::string>& params, in PutCommand()
2701 const std::map<std::string, std::string>& options, in PutCommand() argument
2702 const std::vector<std::string>& flags) in PutCommand()
2724 void PutCommand::Help(std::string& ret) { in Help()
2759 const std::vector<std::string>& /*params*/, in DBQuerierCommand() argument
2760 const std::map<std::string, std::string>& options, in DBQuerierCommand() argument
2761 const std::vector<std::string>& flags) in DBQuerierCommand()
2768 void DBQuerierCommand::Help(std::string& ret) { in Help()
2787 std::string line; in DoCommand()
2788 std::string key; in DoCommand()
2789 std::string value; in DoCommand()
2792 std::vector<std::string> tokens; in DoCommand()
2796 if (pos2 == std::string::npos) { in DoCommand()
2804 const std::string& cmd = tokens[0]; in DoCommand()
2838 const std::vector<std::string>& /*params*/, in CheckConsistencyCommand() argument
2839 const std::map<std::string, std::string>& options, in CheckConsistencyCommand() argument
2840 const std::vector<std::string>& flags) in CheckConsistencyCommand()
2843 void CheckConsistencyCommand::Help(std::string& ret) { in Help()
2867 const std::string CheckPointCommand::ARG_CHECKPOINT_DIR = "checkpoint_dir";
2870 const std::vector<std::string>& /*params*/, in CheckPointCommand() argument
2871 const std::map<std::string, std::string>& options, in CheckPointCommand() argument
2872 const std::vector<std::string>& flags) in CheckPointCommand()
2881 void CheckPointCommand::Help(std::string& ret) { in Help()
2905 RepairCommand::RepairCommand(const std::vector<std::string>& /*params*/, in RepairCommand() argument
2906 const std::map<std::string, std::string>& options, in RepairCommand() argument
2907 const std::vector<std::string>& flags) in RepairCommand()
2910 void RepairCommand::Help(std::string& ret) { in Help()
2929 const std::string BackupableCommand::ARG_NUM_THREADS = "num_threads";
2930 const std::string BackupableCommand::ARG_BACKUP_ENV_URI = "backup_env_uri";
2931 const std::string BackupableCommand::ARG_BACKUP_DIR = "backup_dir";
2932 const std::string BackupableCommand::ARG_STDERR_LOG_LEVEL = "stderr_log_level";
2935 const std::vector<std::string>& /*params*/, in BackupableCommand() argument
2936 const std::map<std::string, std::string>& options, in BackupableCommand() argument
2937 const std::vector<std::string>& flags) in BackupableCommand()
2973 void BackupableCommand::Help(const std::string& name, std::string& ret) { in Help()
2985 BackupCommand::BackupCommand(const std::vector<std::string>& params, in BackupCommand()
2986 const std::map<std::string, std::string>& options, in BackupCommand() argument
2987 const std::vector<std::string>& flags) in BackupCommand()
2990 void BackupCommand::Help(std::string& ret) { in Help()
3029 const std::vector<std::string>& params, in RestoreCommand()
3030 const std::map<std::string, std::string>& options, in RestoreCommand() argument
3031 const std::vector<std::string>& flags) in RestoreCommand()
3034 void RestoreCommand::Help(std::string& ret) { in Help()
3071 void DumpSstFile(Options options, std::string filename, bool output_hex, in DumpSstFile()
3073 std::string from_key; in DumpSstFile()
3074 std::string to_key; in DumpSstFile()
3118 const std::vector<std::string>& /*params*/, in DBFileDumperCommand() argument
3119 const std::map<std::string, std::string>& options, in DBFileDumperCommand() argument
3120 const std::vector<std::string>& flags) in DBFileDumperCommand()
3123 void DBFileDumperCommand::Help(std::string& ret) { in Help()
3138 std::string manifest_filename; in DoCommand()
3148 std::string manifest_filepath = db_->GetName() + "/" + manifest_filename; in DoCommand()
3158 std::string filename = fileMetadata.db_path + fileMetadata.name; in DoCommand()
3175 std::string filename = db_->GetOptions().wal_dir + wal->PathName(); in DoCommand()
3184 void WriteExternalSstFilesCommand::Help(std::string& ret) { in Help()
3192 const std::vector<std::string>& params, in WriteExternalSstFilesCommand()
3193 const std::map<std::string, std::string>& options, in WriteExternalSstFilesCommand() argument
3194 const std::vector<std::string>& flags) in WriteExternalSstFilesCommand()
3225 std::string line; in DoCommand()
3229 std::string key; in DoCommand()
3230 std::string value; in DoCommand()
3267 const std::string IngestExternalSstFilesCommand::ARG_MOVE_FILES = "move_files";
3268 const std::string IngestExternalSstFilesCommand::ARG_SNAPSHOT_CONSISTENCY =
3270 const std::string IngestExternalSstFilesCommand::ARG_ALLOW_GLOBAL_SEQNO =
3272 const std::string IngestExternalSstFilesCommand::ARG_ALLOW_BLOCKING_FLUSH =
3274 const std::string IngestExternalSstFilesCommand::ARG_INGEST_BEHIND =
3276 const std::string IngestExternalSstFilesCommand::ARG_WRITE_GLOBAL_SEQNO =
3279 void IngestExternalSstFilesCommand::Help(std::string& ret) { in Help()
3293 const std::vector<std::string>& params, in IngestExternalSstFilesCommand()
3294 const std::map<std::string, std::string>& options, in IngestExternalSstFilesCommand() argument
3295 const std::vector<std::string>& flags) in IngestExternalSstFilesCommand()
3383 const std::map<std::string, std::string>& options, in ListFileRangeDeletesCommand() argument
3384 const std::vector<std::string>& flags) in ListFileRangeDeletesCommand()
3386 std::map<std::string, std::string>::const_iterator itr =
3405 void ListFileRangeDeletesCommand::Help(std::string& ret) { in Help()
3420 std::string out_str; in DoCommand()