Lines Matching refs:cf
587 for (auto cf : cfs) { in CreateColumnFamilies() local
588 Status s = db_->CreateColumnFamily(cf_opts, cf, &handles_[cfi++]); in CreateColumnFamilies()
689 Status DBTestBase::Flush(int cf) { in Flush() argument
690 if (cf == 0) { in Flush()
693 return db_->Flush(FlushOptions(), handles_[cf]); in Flush()
712 Status DBTestBase::Put(int cf, const Slice& k, const Slice& v, in Put() argument
715 return db_->Merge(wo, handles_[cf], k, v); in Put()
717 return db_->Put(wo, handles_[cf], k, v); in Put()
725 Status DBTestBase::Merge(int cf, const Slice& k, const Slice& v, in Merge() argument
727 return db_->Merge(wo, handles_[cf], k, v); in Merge()
734 Status DBTestBase::Delete(int cf, const std::string& k) { in Delete() argument
735 return db_->Delete(WriteOptions(), handles_[cf], k); in Delete()
742 Status DBTestBase::SingleDelete(int cf, const std::string& k) { in SingleDelete() argument
743 return db_->SingleDelete(WriteOptions(), handles_[cf], k); in SingleDelete()
764 std::string DBTestBase::Get(int cf, const std::string& k, in Get() argument
770 Status s = db_->Get(options, handles_[cf], k, &result); in Get()
880 std::string DBTestBase::Contents(int cf) { in Contents() argument
883 Iterator* iter = (cf == 0) ? db_->NewIterator(ReadOptions()) in Contents()
884 : db_->NewIterator(ReadOptions(), handles_[cf]); in Contents()
906 std::string DBTestBase::AllEntriesFor(const Slice& user_key, int cf) { in AllEntriesFor() argument
913 if (cf == 0) { in AllEntriesFor()
918 kMaxSequenceNumber, handles_[cf])); in AllEntriesFor()
970 int DBTestBase::NumSortedRuns(int cf) { in NumSortedRuns() argument
972 if (cf == 0) { in NumSortedRuns()
975 db_->GetColumnFamilyMetaData(handles_[cf], &cf_meta); in NumSortedRuns()
986 uint64_t DBTestBase::TotalSize(int cf) { in TotalSize() argument
988 if (cf == 0) { in TotalSize()
991 db_->GetColumnFamilyMetaData(handles_[cf], &cf_meta); in TotalSize()
1008 size_t DBTestBase::TotalLiveFiles(int cf) { in TotalLiveFiles() argument
1010 if (cf == 0) { in TotalLiveFiles()
1013 db_->GetColumnFamilyMetaData(handles_[cf], &cf_meta); in TotalLiveFiles()
1028 int DBTestBase::NumTableFilesAtLevel(int level, int cf) { in NumTableFilesAtLevel() argument
1030 if (cf == 0) { in NumTableFilesAtLevel()
1036 handles_[cf], "rocksdb.num-files-at-level" + NumberToString(level), in NumTableFilesAtLevel()
1042 double DBTestBase::CompressionRatioAtLevel(int level, int cf) { in CompressionRatioAtLevel() argument
1044 if (cf == 0) { in CompressionRatioAtLevel()
1051 handles_[cf], in CompressionRatioAtLevel()
1058 int DBTestBase::TotalTableFiles(int cf, int levels) { in TotalTableFiles() argument
1060 levels = (cf == 0) ? db_->NumberLevels() : db_->NumberLevels(handles_[1]); in TotalTableFiles()
1064 result += NumTableFilesAtLevel(level, cf); in TotalTableFiles()
1070 std::string DBTestBase::FilesPerLevel(int cf) { in FilesPerLevel() argument
1072 (cf == 0) ? db_->NumberLevels() : db_->NumberLevels(handles_[1]); in FilesPerLevel()
1076 int f = NumTableFilesAtLevel(level, cf); in FilesPerLevel()
1101 uint64_t DBTestBase::Size(const Slice& start, const Slice& limit, int cf) { in Size() argument
1104 if (cf == 0) { in Size()
1112 void DBTestBase::Compact(int cf, const Slice& start, const Slice& limit, in Compact() argument
1116 ASSERT_OK(db_->CompactRange(compact_options, handles_[cf], &start, &limit)); in Compact()
1119 void DBTestBase::Compact(int cf, const Slice& start, const Slice& limit) { in Compact() argument
1121 db_->CompactRange(CompactRangeOptions(), handles_[cf], &start, &limit)); in Compact()
1131 const std::string& large, int cf) { in MakeTables() argument
1133 ASSERT_OK(Put(cf, small, "begin")); in MakeTables()
1134 ASSERT_OK(Put(cf, large, "end")); in MakeTables()
1135 ASSERT_OK(Flush(cf)); in MakeTables()
1136 MoveFilesToLevel(n - i - 1, cf); in MakeTables()
1143 const std::string& largest, int cf) { in FillLevels() argument
1144 MakeTables(db_->NumberLevels(handles_[cf]), smallest, largest, cf); in FillLevels()
1147 void DBTestBase::MoveFilesToLevel(int level, int cf) { in MoveFilesToLevel() argument
1149 if (cf > 0) { in MoveFilesToLevel()
1150 dbfull()->TEST_CompactRange(l, nullptr, nullptr, handles_[cf]); in MoveFilesToLevel()
1196 void DBTestBase::GenerateNewFile(int cf, Random* rnd, int* key_idx, in GenerateNewFile() argument
1199 ASSERT_OK(Put(cf, Key(*key_idx), RandomString(rnd, (i == 99) ? 1 : 990))); in GenerateNewFile()
1254 void DBTestBase::VerifyIterLast(std::string expected_key, int cf) { in VerifyIterLast() argument
1257 if (cf == 0) { in VerifyIterLast()
1260 iter = db_->NewIterator(ro, handles_[cf]); in VerifyIterLast()
1319 void DBTestBase::validateNumberOfEntries(int numValues, int cf) { in validateNumberOfEntries() argument
1328 if (cf != 0) { in validateNumberOfEntries()
1330 kMaxSequenceNumber, handles_[cf])); in validateNumberOfEntries()