MCPcopy Create free account
hub / github.com/apache/cloudberry / getExtension

Method getExtension

gpcontrib/gpcloud/src/s3url.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144string S3Url::getExtension() const {
145 const string& path = this->prefix;
146 std::string::size_type pos = path.find_last_of('/');
147 string filename = (pos == path.npos) ? path : path.substr(pos + 1);
148
149 pos = filename.find_last_of('.');
150 if (pos == filename.npos) {
151 return "";
152 }
153 return filename.substr(pos);
154}

Callers 2

TESTFunction · 0.80
checkCompressionTypeMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64