summaryrefslogtreecommitdiff
path: root/tools/ldb_cmd_impl.h
diff options
context:
space:
mode:
authorAndrew Kryczka <andrew.kryczka2@gmail.com>2024-04-28 21:22:31 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2024-04-28 21:22:31 -0700
commitd80e1d99bcf8b8c530011a93f4382324dab4da26 (patch)
tree7c97bf8cdc2e8383df75beb5010c3009d08ea7ad /tools/ldb_cmd_impl.h
parent2ec25a3e54d7be89b6ec75328d1fa647765c66d9 (diff)
Add `ldb multi_get_entity` subcommand (#12593)
Summary: Mixed code from `MultiGetCommand` and `GetEntityCommand` to introduce `MultiGetEntityCommand`. Some minor fixes for the related subcommands are included. Pull Request resolved: https://github.com/facebook/rocksdb/pull/12593 Reviewed By: jaykorean Differential Revision: D56687147 Pulled By: ajkr fbshipit-source-id: 2ad7b7ba8e05e990b43f2d1eb4990f746ce5f1ea
Diffstat (limited to 'tools/ldb_cmd_impl.h')
-rw-r--r--tools/ldb_cmd_impl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/ldb_cmd_impl.h b/tools/ldb_cmd_impl.h
index e5d0d1fe9..15ff571b2 100644
--- a/tools/ldb_cmd_impl.h
+++ b/tools/ldb_cmd_impl.h
@@ -435,6 +435,22 @@ class GetEntityCommand : public LDBCommand {
std::string key_;
};
+class MultiGetEntityCommand : public LDBCommand {
+ public:
+ static std::string Name() { return "multi_get_entity"; }
+
+ MultiGetEntityCommand(const std::vector<std::string>& params,
+ const std::map<std::string, std::string>& options,
+ const std::vector<std::string>& flags);
+
+ void DoCommand() override;
+
+ static void Help(std::string& ret);
+
+ private:
+ std::vector<std::string> keys_;
+};
+
class ApproxSizeCommand : public LDBCommand {
public:
static std::string Name() { return "approxsize"; }