// that index block.
class BlockPrefixIndex {
public:
-
// Maps a key to a list of data blocks that could potentially contain
// the key, based on the prefix.
// Returns the total number of relevant blocks, 0 means the key does
size_t ApproximateMemoryUsage() const {
return sizeof(BlockPrefixIndex) +
- (num_block_array_buffer_entries_ + num_buckets_) * sizeof(uint32_t);
+ (num_block_array_buffer_entries_ + num_buckets_) * sizeof(uint32_t);
}
// Create hash index by reading from the metadata blocks.
friend Builder;
BlockPrefixIndex(const SliceTransform* internal_prefix_extractor,
- uint32_t num_buckets,
- uint32_t* buckets,
+ uint32_t num_buckets, uint32_t* buckets,
uint32_t num_block_array_buffer_entries,
uint32_t* block_array_buffer)
: internal_prefix_extractor_(internal_prefix_extractor),