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

Function ToString

be/src/kudu/util/cache.cc:195–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193};
194
195string ToString(Cache::EvictionPolicy p) {
196 switch (p) {
197 case Cache::EvictionPolicy::FIFO:
198 return "fifo";
199 case Cache::EvictionPolicy::LRU:
200 return "lru";
201 default:
202 LOG(FATAL) << "unexpected cache eviction policy: " << static_cast<int>(p);
203 break;
204 }
205 return "unknown";
206}
207
208// A single shard of sharded cache.
209template<Cache::EvictionPolicy policy>

Callers 15

TEST_FFunction · 0.70
MemTrackerMethod · 0.70
~MemTrackerMethod · 0.70
ConvertJwkToPemMethod · 0.70
TEST_PFunction · 0.70
ShardedCacheMethod · 0.70
sendMethod · 0.70
ToStringMethod · 0.50
EpollRegisterMethod · 0.50
ShutdownMethod · 0.50
ReadHandlerMethod · 0.50
HandleIncomingCallMethod · 0.50

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.56
sendMethod · 0.56