|
|
@ -89,12 +89,10 @@ class PartitionedFilterBlockTest : public testing::Test { |
|
|
|
|
|
|
|
|
|
|
|
PartitionedFilterBlockBuilder* NewBuilder( |
|
|
|
PartitionedFilterBlockBuilder* NewBuilder( |
|
|
|
PartitionedIndexBuilder* const p_index_builder) { |
|
|
|
PartitionedIndexBuilder* const p_index_builder) { |
|
|
|
uint32_t partition_size = |
|
|
|
assert(table_opt.block_size_deviation <= 100); |
|
|
|
table_options_.metadata_block_size > |
|
|
|
auto partition_size = static_cast<const uint32_t>( |
|
|
|
(uint64_t)table_options_.block_size_deviation |
|
|
|
table_opt.metadata_block_size * (100 - table_opt.block_size_deviation)); |
|
|
|
? table_options_.metadata_block_size - |
|
|
|
partition_size = std::max(partition_size, static_cast<const uint32_t>(1)); |
|
|
|
table_options_.block_size_deviation |
|
|
|
|
|
|
|
: 1; |
|
|
|
|
|
|
|
return new PartitionedFilterBlockBuilder( |
|
|
|
return new PartitionedFilterBlockBuilder( |
|
|
|
nullptr, table_options_.whole_key_filtering, |
|
|
|
nullptr, table_options_.whole_key_filtering, |
|
|
|
table_options_.filter_policy->GetFilterBitsBuilder(), |
|
|
|
table_options_.filter_policy->GetFilterBitsBuilder(), |
|
|
|