Zeilen mit Mutation löschen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Zeilen mit "Mutation" löschen.
Codebeispiel
Nächste Schritte
Wenn Sie nach Codebeispielen für andere Google Cloud -Produkte suchen und filtern möchten, können Sie den Google Cloud -Beispielbrowser verwenden.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis content demonstrates how to delete rows in Bigtable using the \u003ccode\u003emutate\u003c/code\u003e function within C++.\u003c/p\u003e\n"],["\u003cp\u003eThe code provided utilizes \u003ccode\u003ecbt::BulkMutation\u003c/code\u003e and \u003ccode\u003ecbt::SingleRowMutation\u003c/code\u003e to delete entire rows based on provided keys.\u003c/p\u003e\n"],["\u003cp\u003eThe code snippet showcases checking for and handling potential failures during the deletion of rows.\u003c/p\u003e\n"],["\u003cp\u003eTo use this, users need to set up Application Default Credentials for authentication to Bigtable.\u003c/p\u003e\n"],["\u003cp\u003eThe content directs the user to more resources including client library installation and other code samples for Bigtable.\u003c/p\u003e\n"]]],[],null,["Delete rows using mutate.\n\nCode sample \n\nC++\n\n\nTo learn how to install and use the client library for Bigtable, see\n[Bigtable client libraries](/bigtable/docs/reference/libraries).\n\n\nTo authenticate to Bigtable, set up Application Default Credentials.\nFor more information, see\n\n[Set up authentication for a local development environment](/docs/authentication/set-up-adc-local-dev-environment).\n\n namespace cbt = ::google::cloud::bigtable;\n [](cbt::Table table, std::vector\u003cstd::string\u003e const& keys) {\n cbt::BulkMutation mutation;\n for (auto const& row_key : keys) {\n mutation.emplace_back(\n cbt::SingleRowMutation(row_key, cbt::DeleteFromRow()));\n }\n std::vector\u003ccbt::FailedMutation\u003e failures =\n table.BulkApply(std::move(mutation));\n if (failures.empty()) {\n std::cout \u003c\u003c \"All rows successfully deleted\\n\";\n return;\n }\n std::cerr \u003c\u003c \"The following mutations failed:\\n\";\n for (auto const& f : failures) {\n std::cerr \u003c\u003c \"index[\" \u003c\u003c f.original_index() \u003c\u003c \"]=\" \u003c\u003c f.status() \u003c\u003c \"\\n\";\n }\n }\n\nWhat's next\n\n\nTo search and filter code samples for other Google Cloud products, see the\n[Google Cloud sample browser](/docs/samples?product=bigtable)."]]