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

Method ToString

be/src/util/cache/cache-bench.cc:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

TEST_PFunction · 0.45
EncodeIntFunction · 0.45

Calls 1

StringPrintfFunction · 0.85

Tested by 1

EncodeIntFunction · 0.36