Lines Matching refs:new_opt
517 BlockBasedTableOptions new_opt; in TEST_F() local
527 &new_opt)); in TEST_F()
528 ASSERT_TRUE(new_opt.cache_index_and_filter_blocks); in TEST_F()
529 ASSERT_EQ(new_opt.index_type, BlockBasedTableOptions::kHashSearch); in TEST_F()
530 ASSERT_EQ(new_opt.checksum, ChecksumType::kxxHash); in TEST_F()
531 ASSERT_TRUE(new_opt.hash_index_allow_collision); in TEST_F()
532 ASSERT_TRUE(new_opt.no_block_cache); in TEST_F()
533 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
534 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 1024UL*1024UL); in TEST_F()
535 ASSERT_TRUE(new_opt.block_cache_compressed != nullptr); in TEST_F()
536 ASSERT_EQ(new_opt.block_cache_compressed->GetCapacity(), 1024UL); in TEST_F()
537 ASSERT_EQ(new_opt.block_size, 1024UL); in TEST_F()
538 ASSERT_EQ(new_opt.block_size_deviation, 8); in TEST_F()
539 ASSERT_EQ(new_opt.block_restart_interval, 4); in TEST_F()
540 ASSERT_EQ(new_opt.format_version, 5U); in TEST_F()
541 ASSERT_EQ(new_opt.whole_key_filtering, true); in TEST_F()
542 ASSERT_TRUE(new_opt.filter_policy != nullptr); in TEST_F()
544 dynamic_cast<const BloomFilterPolicy&>(*new_opt.filter_policy); in TEST_F()
552 &new_opt)); in TEST_F()
554 new_opt.cache_index_and_filter_blocks); in TEST_F()
555 ASSERT_EQ(table_opt.index_type, new_opt.index_type); in TEST_F()
560 &new_opt)); in TEST_F()
562 new_opt.cache_index_and_filter_blocks); in TEST_F()
563 ASSERT_EQ(table_opt.index_type, new_opt.index_type); in TEST_F()
568 &new_opt)); in TEST_F()
570 new_opt.cache_index_and_filter_blocks); in TEST_F()
571 ASSERT_EQ(table_opt.index_type, new_opt.index_type); in TEST_F()
577 &new_opt)); in TEST_F()
579 new_opt.cache_index_and_filter_blocks); in TEST_F()
580 ASSERT_EQ(table_opt.filter_policy, new_opt.filter_policy); in TEST_F()
586 &new_opt)); in TEST_F()
588 new_opt.cache_index_and_filter_blocks); in TEST_F()
589 ASSERT_EQ(table_opt.filter_policy, new_opt.filter_policy); in TEST_F()
598 &new_opt)); in TEST_F()
599 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
600 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 1024UL*1024UL); in TEST_F()
602 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F()
603 ASSERT_EQ(new_opt.block_cache->HasStrictCapacityLimit(), true); in TEST_F()
605 new_opt.block_cache)->GetHighPriPoolRatio(), 0.5); in TEST_F()
606 ASSERT_TRUE(new_opt.block_cache_compressed != nullptr); in TEST_F()
607 ASSERT_EQ(new_opt.block_cache_compressed->GetCapacity(), 1024UL*1024UL); in TEST_F()
609 new_opt.block_cache_compressed)->GetNumShardBits(), 4); in TEST_F()
610 ASSERT_EQ(new_opt.block_cache_compressed->HasStrictCapacityLimit(), true); in TEST_F()
612 new_opt.block_cache_compressed)->GetHighPriPoolRatio(), in TEST_F()
620 &new_opt)); in TEST_F()
621 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
622 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 2*1024UL*1024UL); in TEST_F()
625 new_opt.block_cache)->GetNumShardBits(), in TEST_F()
626 GetDefaultCacheShardBits(new_opt.block_cache->GetCapacity())); in TEST_F()
627 ASSERT_EQ(new_opt.block_cache->HasStrictCapacityLimit(), false); in TEST_F()
628 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache) in TEST_F()
631 ASSERT_TRUE(new_opt.block_cache_compressed != nullptr); in TEST_F()
632 ASSERT_EQ(new_opt.block_cache_compressed->GetCapacity(), 2*1024UL*1024UL); in TEST_F()
635 new_opt.block_cache_compressed)->GetNumShardBits(), in TEST_F()
637 new_opt.block_cache_compressed->GetCapacity())); in TEST_F()
638 ASSERT_EQ(new_opt.block_cache_compressed->HasStrictCapacityLimit(), false); in TEST_F()
639 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
649 &new_opt)); in TEST_F()
650 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 0); in TEST_F()
652 new_opt.block_cache)->GetNumShardBits(), 5); in TEST_F()
653 ASSERT_EQ(new_opt.block_cache->HasStrictCapacityLimit(), false); in TEST_F()
655 new_opt.block_cache)->GetHighPriPoolRatio(), 0.5); in TEST_F()
656 ASSERT_TRUE(new_opt.block_cache_compressed != nullptr); in TEST_F()
657 ASSERT_EQ(new_opt.block_cache_compressed->GetCapacity(), 0); in TEST_F()
659 new_opt.block_cache_compressed)->GetNumShardBits(), 5); in TEST_F()
660 ASSERT_EQ(new_opt.block_cache_compressed->HasStrictCapacityLimit(), false); in TEST_F()
661 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
671 &new_opt)); in TEST_F()
672 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F()
673 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 1024UL*1024UL); in TEST_F()
675 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F()
676 ASSERT_EQ(new_opt.block_cache->HasStrictCapacityLimit(), true); in TEST_F()
677 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache) in TEST_F()
680 ASSERT_TRUE(new_opt.block_cache_compressed != nullptr); in TEST_F()
681 ASSERT_EQ(new_opt.block_cache_compressed->GetCapacity(), 1024UL*1024UL); in TEST_F()
683 new_opt.block_cache_compressed)->GetNumShardBits(), 4); in TEST_F()
684 ASSERT_EQ(new_opt.block_cache_compressed->HasStrictCapacityLimit(), true); in TEST_F()
685 ASSERT_EQ(std::dynamic_pointer_cast<LRUCache>(new_opt.block_cache_compressed) in TEST_F()
695 PlainTableOptions new_opt; in TEST_F() local
701 &new_opt)); in TEST_F()
702 ASSERT_EQ(new_opt.user_key_len, 66u); in TEST_F()
703 ASSERT_EQ(new_opt.bloom_bits_per_key, 20); in TEST_F()
704 ASSERT_EQ(new_opt.hash_table_ratio, 0.5); in TEST_F()
705 ASSERT_EQ(new_opt.index_sparseness, 8); in TEST_F()
706 ASSERT_EQ(new_opt.huge_page_tlb_size, 4); in TEST_F()
707 ASSERT_EQ(new_opt.encoding_type, EncodingType::kPrefix); in TEST_F()
708 ASSERT_TRUE(new_opt.full_scan_mode); in TEST_F()
709 ASSERT_TRUE(new_opt.store_index_in_file); in TEST_F()
715 &new_opt)); in TEST_F()
721 &new_opt)); in TEST_F()
869 ColumnFamilyOptions base_opt, new_opt; in TEST_F() local
883 ColumnFamilyOptions(), base_options_file_content, &new_opt)); in TEST_F()
884 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_opt, new_opt)); in TEST_F()