Home
last modified time | relevance | path

Searched refs:key2 (Results 1 – 13 of 13) sorted by relevance

/rocksdb-6.9/utilities/write_batch_with_index/
Dwrite_batch_with_index_internal.cc118 Slice key1, key2; in operator ()() local
126 key2 = Slice(write_batch_->Data().data() + entry2->key_offset, in operator ()()
129 key2 = *(entry2->search_key); in operator ()()
132 int cmp = CompareKey(entry1->column_family, key1, key2); in operator ()()
145 const Slice& key2) const { in CompareKey()
148 return cf_comparators_[column_family]->Compare(key1, key2); in CompareKey()
150 return default_comparator_->Compare(key1, key2); in CompareKey()
Dwrite_batch_with_index_internal.h107 const Slice& key2) const;
/rocksdb-6.9/java/src/test/java/org/rocksdb/
DCompactionFilterFactoryTest.java47 final byte[] key2 = "key2".getBytes(); in columnFamilyOptions_setCompactionFilterFactory()
53 rocksDb.put(cfHandles.get(1), key2, value2); in columnFamilyOptions_setCompactionFilterFactory()
58 final boolean exists = rocksDb.keyMayExist(cfHandles.get(1), key2, null); in columnFamilyOptions_setCompactionFilterFactory()
DBlockBasedTableConfigTest.java170 final byte[] key2 = "some-key1".getBytes(StandardCharsets.UTF_8); in blockCacheCompressedIntegration()
197 db.put(writeOptions, key2, value); in blockCacheCompressedIntegration()
203 db.get(readOptions, key2); in blockCacheCompressedIntegration()
DRocksDBTest.java1177 final byte key2[] = "key2".getBytes(UTF_8); in getApproximateSizes()
1183 db.put(key2, key2); in getApproximateSizes()
1188 new Range(new Slice(key1), new Slice(key2)), in getApproximateSizes()
1189 new Range(new Slice(key2), new Slice(key3)) in getApproximateSizes()
1204 final byte key2[] = "key2".getBytes(UTF_8); in getApproximateMemTableStats()
1210 db.put(key2, key2); in getApproximateMemTableStats()
/rocksdb-6.9/java/samples/src/main/java/
DOptimisticTransactionSample.java64 final byte key2[] = "xyz".getBytes(UTF_8); in readCommitted()
83 txnDb.put(writeOptions, key2, value2); in readCommitted()
DTransactionSample.java65 final byte key2[] = "xyz".getBytes(UTF_8); in readCommitted()
84 txnDb.put(writeOptions, key2, value2); in readCommitted()
/rocksdb-6.9/db/
Ddb_bloom_filter_test.cc977 std::string key2("AAAACCCC"); // not in DB in TEST_F() local
987 ASSERT_EQ("NOT_FOUND", Get(key2)); in TEST_F()
997 ASSERT_EQ("NOT_FOUND", Get(key2)); in TEST_F()
1007 ASSERT_EQ("NOT_FOUND", Get(key2)); in TEST_F()
1100 std::string key2("RXDB"); // not in DB in TEST_P() local
1115 ASSERT_EQ("NOT_FOUND", Get(key2)); in TEST_P()
1135 ASSERT_EQ("NOT_FOUND", Get(key2)); in TEST_P()
1142 std::string key2("RXDB"); // not in DB in TEST_P() local
1167 iter->Seek(key2); in TEST_P()
1193 iter->Seek(key2); in TEST_P()
Ddb_test.cc708 std::string key2(kKeySize, 'd'); in TEST_F() local
720 ASSERT_OK(Put(key2, raw)); in TEST_F()
733 s = db_->Get(ReadOptions(), key2, &value); in TEST_F()
750 s = db_->Get(ReadOptions(), key2, &value); in TEST_F()
5141 int key2 = key_start + 2; in TEST_F() local
5147 ASSERT_OK(Put(Key(key2), RandomString(&rnd, 8))); in TEST_F()
5154 ASSERT_EQ(iter->key().compare(Key(key2)), 0); in TEST_F()
/rocksdb-6.9/docs/_docs/
Dgetting-started.md61 …/query the database. For example, the following code moves the value stored under `key1` to `key2`.
66 if (s.ok()) s = db->Put(rocksdb::WriteOptions(), key2, value);
/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator_test.cc98 const std::string key2 = "test2"; in TEST_F() local
106 EXPECT_FALSE(ghost_cache->Admit(key2)); in TEST_F()
107 EXPECT_TRUE(ghost_cache->Admit(key2)); in TEST_F()
/rocksdb-6.9/db_stress_tool/
Ddb_stress_test_base.cc1274 int64_t key2; in TestApproximateSize() local
1277 key2 = GenerateOneKey(thread, iteration); in TestApproximateSize()
1278 if (key2 < key1) { in TestApproximateSize()
1279 std::swap(key1, key2); in TestApproximateSize()
1285 key2 = key1 + static_cast<int64_t>(thread->rand.Uniform(1000)); in TestApproximateSize()
1288 std::string key2_str = Key(key2); in TestApproximateSize()
/rocksdb-6.9/docs/_posts/
D2015-02-27-write-batch-with-index.markdown16 …h` by calling `write_batch.Put("key1", "value1")` or `write_batch.Delete("key2")`, similar as call…