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

Function GetBaseName

be/src/util/hdfs-util.cc:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224string GetBaseName(const char* path) {
225 int fs_name_length = GetFilesystemNameLength(path);
226 if (fs_name_length >= strlen(path)) return ".";
227
228 string bname = kudu::BaseName(&(path[fs_name_length]));
229 if (bname.empty() || bname == "/") return ".";
230
231 return bname;
232}
233
234}

Callers 2

LoadZoneInfoFromHdfsMethod · 0.85
TESTFunction · 0.85

Calls 3

GetFilesystemNameLengthFunction · 0.85
BaseNameFunction · 0.85
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.68