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

Function IsSpecificPath

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

Source from the content-addressed store, hash-verified

92}
93
94static bool IsSpecificPath(
95 const char* path, const char* specific_prefix, bool check_default_fs) {
96 size_t prefix_len = strlen(specific_prefix);
97 if (check_default_fs && strstr(path, ":/") == NULL) {
98 return strncmp(
99 ExecEnv::GetInstance()->default_fs().c_str(), specific_prefix, prefix_len)
100 == 0;
101 }
102 return strncmp(path, specific_prefix, prefix_len) == 0;
103}
104
105bool IsHdfsPath(const char* path, bool check_default_fs) {
106 return IsSpecificPath(path, FILESYS_PREFIX_HDFS, check_default_fs);

Callers 11

IsHdfsPathFunction · 0.85
IsS3APathFunction · 0.85
IsABFSPathFunction · 0.85
IsADLSPathFunction · 0.85
IsOSSPathFunction · 0.85
IsGcsPathFunction · 0.85
IsCosPathFunction · 0.85
IsOzonePathFunction · 0.85
IsSFSPathFunction · 0.85
IsOBSPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected