Searched refs:num_buckets (Results 1 – 7 of 7) sorted by relevance
| /rocksdb-6.9/table/block_based/ |
| D | data_block_hash_index.cc | 31 uint16_t num_buckets = static_cast<uint16_t>(estimated_num_buckets_); in Finish() local 33 if (num_buckets == 0) { in Finish() 34 num_buckets = 1; // sanity check in Finish() 41 num_buckets |= 1; in Finish() 43 std::vector<uint8_t> buckets(num_buckets, kNoEntry); in Finish() 48 uint16_t buck_idx = static_cast<uint16_t>(hash_value % num_buckets); in Finish() 64 PutFixed16(&buffer, num_buckets); in Finish()
|
| D | block_prefix_index.cc | 23 inline uint32_t PrefixToBucket(const Slice& prefix, uint32_t num_buckets) { in PrefixToBucket() argument 24 return Hash(prefix) % num_buckets; in PrefixToBucket() 87 uint32_t num_buckets = static_cast<uint32_t>(prefixes_.size()) + 1; in Finish() local 91 std::vector<PrefixRecord*> prefixes_per_bucket(num_buckets, nullptr); in Finish() 92 std::vector<uint32_t> num_blocks_per_bucket(num_buckets, 0); in Finish() 94 uint32_t bucket = PrefixToBucket(current->prefix, num_buckets); in Finish() 115 for (uint32_t i = 0; i < num_buckets; i++) { in Finish() 124 uint32_t* buckets = new uint32_t[num_buckets]; in Finish() 126 for (uint32_t i = 0; i < num_buckets; i++) { in Finish() 157 return new BlockPrefixIndex(internal_prefix_extractor_, num_buckets, in Finish()
|
| D | block_prefix_index.h | 50 uint32_t num_buckets, uint32_t* buckets, in BlockPrefixIndex() argument 54 num_buckets_(num_buckets), in BlockPrefixIndex()
|
| /rocksdb-6.9/db/ |
| D | prefix_test.cc | 347 for (int num_buckets = 1; num_buckets <= 2; num_buckets++) { in TEST_F() local 349 while (NextOptions(num_buckets)) { in TEST_F() 351 << " number of buckets: " << num_buckets in TEST_F() 521 for (int num_buckets = 1; num_buckets <= 2; num_buckets++) { in TEST_F() local 523 while (NextOptions(num_buckets)) { in TEST_F() 525 << " number of buckets: " << num_buckets << std::endl; in TEST_F()
|
| /rocksdb-6.9/table/plain/ |
| D | plain_table_index.cc | 17 inline uint32_t GetBucketIdFromHash(uint32_t hash, uint32_t num_buckets) { in GetBucketIdFromHash() argument 18 assert(num_buckets > 0); in GetBucketIdFromHash() 19 return hash % num_buckets; in GetBucketIdFromHash()
|
| /rocksdb-6.9/table/cuckoo/ |
| D | cuckoo_table_reader.cc | 274 uint64_t num_buckets = reader_->table_size_ + reader_->cuckoo_block_size_ - 1; in InitIfNeeded() local 275 assert(num_buckets < kInvalidIndex); in InitIfNeeded() 277 for (uint32_t bucket_id = 0; bucket_id < num_buckets; ++bucket_id) { in InitIfNeeded()
|
| /rocksdb-6.9/tools/ |
| D | ldb_cmd.cc | 1355 int num_buckets) { in IncBucketCounts() argument 1358 (void)num_buckets; in IncBucketCounts() 1361 timekv < (ttl_start + time_range) && num_buckets > 1); in IncBucketCounts() 1368 int num_buckets) { in PrintBucketCounts() argument 1379 (unsigned long)bucket_counts[num_buckets - 1]); in PrintBucketCounts() 1729 int num_buckets = (bucket_size >= time_range) in DoDumpCommand() local 1732 std::vector<uint64_t> bucket_counts(num_buckets, 0); in DoDumpCommand() 1759 if (is_db_ttl_ && num_buckets > 1) { in DoDumpCommand() 1761 rawtime, num_buckets); in DoDumpCommand() 1800 if (num_buckets > 1 && is_db_ttl_) { in DoDumpCommand() [all …]
|