Lines Matching refs:value
36 * @brief Put or update the data whose value type is double into the database, which means that the data of
39 * @param key Indicates the key of key-value data to put or update.
40 * @param value Indicates the value of key-value data to put or update.
44 virtual uint32_t PutDouble(const std::string &key, double value) = 0;
47 * @brief Put or update the data whose value type is bool into the database, which means that the data of
50 * @param key Indicates the key of key-value data to put or update.
51 * @param value Indicates the value of key-value data to put or update.
55 virtual uint32_t PutBoolean(const std::string &key, bool value) = 0;
58 * @brief Put or update the data whose value type is string into the database, which means that the data of
61 * @param key Indicates the key of key-value data to put or update.
62 * @param value Indicates the value of key-value data to put or update.
66 virtual uint32_t PutString(const std::string &key, const std::string &value) = 0;
69 * @brief Put or update the data whose value type is bytes stream into the database, which means that the data of
72 * @param key Indicates the key of key-value data to put or update.
73 * @param value Indicates the value of key-value data to put or update.
77 virtual uint32_t PutComplex(const std::string &key, const std::vector<uint8_t> &value) = 0;
80 * @brief Get the data whose value type is double from the database according to the key,
83 * @param key Indicates the key of key-value data to put or update.
84 * @param value Indicates the value of key-value data to put or update.
88 virtual uint32_t GetDouble(const std::string &key, double &value) = 0;
91 * @brief Get the data whose value type is bool from the database according to the key,
94 * @param key Indicates the key of key-value data to get.
95 * @param value Indicates the value of key-value data to get.
99 virtual uint32_t GetBoolean(const std::string &key, bool &value) = 0;
102 * @brief Get the data whose value type is string from the database according to the key,
105 * @param key Indicates the key of key-value data to put or update.
106 * @param value Indicates the value of key-value data to put or update.
110 virtual uint32_t GetString(const std::string &key, std::string &value) = 0;
113 * @brief Get the data whose value type is complex from the database according to the key,
116 * @param key Indicates the key of key-value data to put or update.
117 * @param value Indicates the value of key-value data to put or update.
121 virtual uint32_t GetComplex(const std::string &key, std::vector<uint8_t> &value) = 0;
124 * @brief Get the value type of key-value data by the key
126 * @param key Indicates the key of key-value data.
127 * @param value Indicates the value of key-value data.