Lines Matching refs:cf

138     for (auto cf : cfs) {  in CreateColumnFamilies()  local
139 ASSERT_OK(db_->CreateColumnFamily(cf_opts, cf, &handles_[cfi++])); in CreateColumnFamilies()
215 Status Flush(int cf = 0) { in Flush() argument
216 if (cf == 0) { in Flush()
219 return db_->Flush(FlushOptions(), handles_[cf]); in Flush()
227 Status Put(int cf, const Slice& k, const Slice& v, in Put() argument
229 return db_->Put(wo, handles_[cf], k, v); in Put()
236 Status Delete(int cf, const std::string& k) { in Delete() argument
237 return db_->Delete(WriteOptions(), handles_[cf], k); in Delete()
254 std::string Get(int cf, const std::string& k, in Get() argument
260 Status s = db_->Get(options, handles_[cf], k, &result); in Get()
269 int NumTableFilesAtLevel(int level, int cf = 0) { in NumTableFilesAtLevel() argument
271 if (cf == 0) { in NumTableFilesAtLevel()
277 handles_[cf], "rocksdb.num-files-at-level" + NumberToString(level), in NumTableFilesAtLevel()
284 std::string FilesPerLevel(int cf = 0) { in FilesPerLevel() argument
286 (cf == 0) ? db_->NumberLevels() : db_->NumberLevels(handles_[1]); in FilesPerLevel()
290 int f = NumTableFilesAtLevel(level, cf); in FilesPerLevel()
302 uint64_t Size(const Slice& start, const Slice& limit, int cf = 0) { in Size() argument
305 if (cf == 0) { in Size()
313 void Compact(int cf, const Slice& start, const Slice& limit, in Compact() argument
317 ASSERT_OK(db_->CompactRange(compact_options, handles_[cf], &start, &limit)); in Compact()
320 void Compact(int cf, const Slice& start, const Slice& limit) { in Compact() argument
322 db_->CompactRange(CompactRangeOptions(), handles_[cf], &start, &limit)); in Compact()
329 void TEST_Compact(int level, int cf, const Slice& start, const Slice& limit) { in TEST_Compact() argument
330 ASSERT_OK(dbfull()->TEST_CompactRange(level, &start, &limit, handles_[cf], in TEST_Compact()
337 int cf = 0) { in MakeTables() argument
339 ASSERT_OK(Put(cf, small, "begin")); in MakeTables()
340 ASSERT_OK(Put(cf, large, "end")); in MakeTables()
341 ASSERT_OK(Flush(cf)); in MakeTables()
356 double ratio, int cf = 0) { in MakeTableWithKeyValues() argument
358 ASSERT_OK(Put(cf, Slice(Key(key, key_size)), in MakeTableWithKeyValues()
361 ASSERT_OK(Flush(cf)); in MakeTableWithKeyValues()
369 uint64_t cutoff_key_num, CompactionJobStats* stats, int cf = 0) { in SelectivelyDeleteKeys() argument
382 ASSERT_OK(Delete(cf, Key(key, key_size))); in SelectivelyDeleteKeys()
394 ASSERT_OK(Delete(cf, Key(smallest+1, key_size))); in SelectivelyDeleteKeys()
397 ASSERT_OK(Delete(cf, Key(smallest-1, key_size))); in SelectivelyDeleteKeys()
401 ASSERT_OK(Delete(cf, Key(smallest-9, key_size))); in SelectivelyDeleteKeys()
405 ASSERT_OK(Flush(cf)); in SelectivelyDeleteKeys()