@Test public void tablesWithAppendHeavyReadLightHaveSizeTieredBasedBloomFilterFpChance() { assertThat(CassandraTableOptions.bloomFilterFpChance(APPEND_HEAVY_READ_LIGHT_METADATA)) .isEqualTo(CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE); assertThat(CassandraTableOptions.bloomFilterFpChance(APPEND_HEAVY_READ_LIGHT_NEGATIVE_LOOKUPS_METADATA)) .isEqualTo(CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE); }
static double bloomFilterFpChance(TableMetadata tableMetadata) { if (tableMetadata.hasDenselyAccessedWideRows()) { return CassandraConstants.DENSELY_ACCESSED_WIDE_ROWS_BLOOM_FILTER_FP_CHANCE; } if (tableMetadata.isAppendHeavyAndReadLight()) { return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_LEVELED_COMPACTION_BLOOM_FILTER_FP_CHANCE; }
CassandraTableOptions { static double bloomFilterFpChance(TableMetadata tableMetadata) { if (tableMetadata.hasDenselyAccessedWideRows()) { return CassandraConstants.DENSELY_ACCESSED_WIDE_ROWS_BLOOM_FILTER_FP_CHANCE; } if (tableMetadata.isAppendHeavyAndReadLight()) { return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_LEVELED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } }
CassandraTableOptions { static double bloomFilterFpChance(TableMetadata tableMetadata) { if (tableMetadata.hasDenselyAccessedWideRows()) { return CassandraConstants.DENSELY_ACCESSED_WIDE_ROWS_BLOOM_FILTER_FP_CHANCE; } if (tableMetadata.isAppendHeavyAndReadLight()) { return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_LEVELED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } private  CassandraTableOptions(); }
CassandraTableOptions { static double bloomFilterFpChance(TableMetadata tableMetadata) { if (tableMetadata.hasDenselyAccessedWideRows()) { return CassandraConstants.DENSELY_ACCESSED_WIDE_ROWS_BLOOM_FILTER_FP_CHANCE; } if (tableMetadata.isAppendHeavyAndReadLight()) { return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_LEVELED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } private  CassandraTableOptions();  }
CassandraTableOptions { static double bloomFilterFpChance(TableMetadata tableMetadata) { if (tableMetadata.hasDenselyAccessedWideRows()) { return CassandraConstants.DENSELY_ACCESSED_WIDE_ROWS_BLOOM_FILTER_FP_CHANCE; } if (tableMetadata.isAppendHeavyAndReadLight()) { return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_SIZE_TIERED_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_SIZE_TIERED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } return tableMetadata.hasNegativeLookups() ? CassandraConstants.NEGATIVE_LOOKUPS_BLOOM_FILTER_FP_CHANCE : CassandraConstants.DEFAULT_LEVELED_COMPACTION_BLOOM_FILTER_FP_CHANCE; } private  CassandraTableOptions();   }