MCPcopy Create free account
hub / github.com/apache/impala / ToString

Method ToString

be/src/kudu/util/cache-bench.cc:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

TEST_PFunction · 0.45

Calls 1

StringPrintfFunction · 0.85

Tested by

no test coverage detected