MCPcopy Create free account
hub / github.com/apache/fluss / getName

Method getName

fluss-common/src/main/java/org/apache/fluss/fs/FsPath.java:273–277  ·  view source on GitHub ↗

Returns the final component of this path, i.e., everything that follows the last separator. @return the final component of the path

()

Source from the content-addressed store, hash-verified

271 * @return the final component of the path
272 */
273 public String getName() {
274 final String path = uri.getPath();
275 final int slash = path.lastIndexOf(SEPARATOR);
276 return path.substring(slash + 1);
277 }
278
279 /**
280 * Return full path.

Callers 15

findNoticeFilesMethod · 0.45
beforeEachMethod · 0.45
testSuccessfulMethod · 0.45
testFailedMethod · 0.45
exceptionToStringMethod · 0.45
checkFinishedMethod · 0.45
createNetworkClientMethod · 0.45
downloadFileMethod · 0.45
toPbAddColumnMethod · 0.45

Calls 2

getPathMethod · 0.65
substringMethod · 0.45

Tested by 15

beforeEachMethod · 0.36
testSuccessfulMethod · 0.36
testFailedMethod · 0.36
exceptionToStringMethod · 0.36
checkFinishedMethod · 0.36
createNetworkClientMethod · 0.36
downloadFileMethod · 0.36
apiVersionsMethod · 0.36
testInvalidRpcMethodsMethod · 0.36
doCreatePaimonTableMethod · 0.36