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

Function GetFileName

be/src/exec/acid-metadata-utils.cc:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45inline string GetFileName(const string& filepath) {
46 std::size_t slash_before_file = filepath.rfind('/');
47 if (slash_before_file == string::npos) return filepath;
48 return filepath.substr(slash_before_file + 1);
49}
50
51inline bool StrStartsWith(const string& str, const string& prefix) {
52 return str.rfind(prefix, 0) == 0;

Callers 1

GetBucketPropertyMethod · 0.85

Calls 2

rfindMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected