Lines Matching refs:key

27 static std::string Reverse(const Slice& key) {  in Reverse()  argument
28 std::string str(key.ToString()); in Reverse()
57 virtual void FindShortSuccessor(std::string* key) const { in FindShortSuccessor()
58 std::string s = Reverse(*key); in FindShortSuccessor()
60 *key = Reverse(s); in FindShortSuccessor()
66 static void Increment(const Comparator* cmp, std::string* key) { in Increment() argument
68 key->push_back('\0'); in Increment()
71 std::string rev = Reverse(*key); in Increment()
73 *key = Reverse(rev); in Increment()
146 void Add(const std::string& key, const Slice& value) { in Add() argument
147 data_[key] = value.ToString(); in Add()
257 uint64_t ApproximateOffsetOf(const Slice& key) const { in ApproximateOffsetOf()
258 return table_->ApproximateOffsetOf(key); in ApproximateOffsetOf()
292 virtual Slice key() const { in key() function in leveldb::KeyConvertingIterator
294 ParsedInternalKey key; in key() local
295 if (!ParseInternalKey(iter_->key(), &key)) { in key()
299 return key.user_key; in key()
473 void Add(const std::string& key, const std::string& value) { in Add() argument
474 constructor_->Add(key, value); in Add()
547 std::string key = PickRandomKey(rnd, keys); in TestRandomAccess() local
548 model_iter = data.lower_bound(key); in TestRandomAccess()
550 EscapeString(key).c_str()); in TestRandomAccess()
551 iter->Seek(Slice(key)); in TestRandomAccess()
608 return "'" + it->key().ToString() + "->" + it->value().ToString() + "'"; in ToString()
778 iter->key().ToString().c_str(), in TEST()