|
6 | 6 | * compatible open source license. |
7 | 7 | */ |
8 | 8 |
|
9 | | -package org.opensearch.cache.common.tier; |
| 9 | +package org.opensearch.common.cache.tier; |
10 | 10 |
|
11 | 11 | import org.apache.logging.log4j.LogManager; |
12 | 12 | import org.apache.logging.log4j.Logger; |
13 | | -import org.opensearch.cache.common.policy.TookTimePolicy; |
14 | 13 | import org.opensearch.common.annotation.ExperimentalApi; |
15 | 14 | import org.opensearch.common.cache.CacheType; |
16 | 15 | import org.opensearch.common.cache.ICache; |
|
20 | 19 | import org.opensearch.common.cache.RemovalNotification; |
21 | 20 | import org.opensearch.common.cache.RemovalReason; |
22 | 21 | import org.opensearch.common.cache.policy.CachedQueryResult; |
| 22 | +import org.opensearch.common.cache.policy.TookTimePolicy; |
23 | 23 | import org.opensearch.common.cache.stats.ImmutableCacheStatsHolder; |
24 | 24 | import org.opensearch.common.cache.stats.TieredSpilloverCacheStatsHolder; |
25 | 25 | import org.opensearch.common.cache.store.config.CacheConfig; |
|
50 | 50 | import java.util.function.Predicate; |
51 | 51 | import java.util.function.ToLongBiFunction; |
52 | 52 |
|
53 | | -import static org.opensearch.cache.common.tier.TieredSpilloverCacheSettings.DISK_CACHE_ENABLED_SETTING_MAP; |
54 | | -import static org.opensearch.cache.common.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_DISK_STORE_SIZE; |
55 | | -import static org.opensearch.cache.common.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE; |
56 | | -import static org.opensearch.cache.common.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_SEGMENTS; |
57 | 53 | import static org.opensearch.common.cache.settings.CacheSettings.INVALID_SEGMENT_COUNT_EXCEPTION_MESSAGE; |
58 | 54 | import static org.opensearch.common.cache.settings.CacheSettings.VALID_SEGMENT_COUNT_VALUES; |
59 | 55 | import static org.opensearch.common.cache.stats.TieredSpilloverCacheStatsHolder.TIER_DIMENSION_VALUE_DISK; |
60 | 56 | import static org.opensearch.common.cache.stats.TieredSpilloverCacheStatsHolder.TIER_DIMENSION_VALUE_ON_HEAP; |
| 57 | +import static org.opensearch.common.cache.tier.TieredSpilloverCacheSettings.DISK_CACHE_ENABLED_SETTING_MAP; |
| 58 | +import static org.opensearch.common.cache.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_DISK_STORE_SIZE; |
| 59 | +import static org.opensearch.common.cache.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_ONHEAP_STORE_SIZE; |
| 60 | +import static org.opensearch.common.cache.tier.TieredSpilloverCacheSettings.TIERED_SPILLOVER_SEGMENTS; |
61 | 61 |
|
62 | 62 | /** |
63 | 63 | * This cache spillover the evicted items from heap tier to disk tier. All the new items are first cached on heap |
|
0 commit comments