| 75 | double dataset_cache_ratio; |
| 76 | |
| 77 | string ToString() const { |
| 78 | string ret; |
| 79 | switch (pattern) { |
| 80 | case Pattern::ZIPFIAN: ret += "ZIPFIAN"; break; |
| 81 | case Pattern::UNIFORM: ret += "UNIFORM"; break; |
| 82 | } |
| 83 | ret += StringPrintf(" ratio=%.2fx n_unique=%d", dataset_cache_ratio, max_key()); |
| 84 | return ret; |
| 85 | } |
| 86 | |
| 87 | // Return the maximum cache key to be generated for a lookup. |
| 88 | uint32_t max_key() const { |
no test coverage detected