@Test public void getBucketName() throws Exception { assertEquals("s3-bucket-name", UnderFileSystemUtils.getBucketName(new AlluxioURI("s3: assertEquals("s3a_bucket_name", UnderFileSystemUtils.getBucketName(new AlluxioURI("s3a: assertEquals("a.b.c", UnderFileSystemUtils.getBucketName(new AlluxioURI("gs: assertEquals("container&", UnderFileSystemUtils.getBucketName(new AlluxioURI("swift: assertEquals("oss", UnderFileSystemUtils.getBucketName(new AlluxioURI("oss: }
public static String getBucketName(AlluxioURI uri) { return uri.getAuthority().toString(); }
UnderFileSystemUtils { public static String getBucketName(AlluxioURI uri) { return uri.getAuthority().toString(); } }
UnderFileSystemUtils { public static String getBucketName(AlluxioURI uri) { return uri.getAuthority().toString(); } private  UnderFileSystemUtils(); }
UnderFileSystemUtils { public static String getBucketName(AlluxioURI uri) { return uri.getAuthority().toString(); } private  UnderFileSystemUtils(); static void deleteDirIfExists(UnderFileSystem ufs, String path); static void mkdirIfNotExists(UnderFileSystem ufs, String path); static void touch(UnderFileSystem ufs, String path); static void deleteFileIfExists(UnderFileSystem ufs, String path); static boolean isGcs(UnderFileSystem ufs); static boolean isLocal(UnderFileSystem ufs); static boolean isHdfs(UnderFileSystem ufs); static boolean isOss(UnderFileSystem ufs); static boolean isS3(UnderFileSystem ufs); static boolean isSwift(UnderFileSystem ufs); static boolean isWeb(UnderFileSystem ufs); static String getBucketName(AlluxioURI uri); static String approximateContentHash(long length, long modTime); }
UnderFileSystemUtils { public static String getBucketName(AlluxioURI uri) { return uri.getAuthority().toString(); } private  UnderFileSystemUtils(); static void deleteDirIfExists(UnderFileSystem ufs, String path); static void mkdirIfNotExists(UnderFileSystem ufs, String path); static void touch(UnderFileSystem ufs, String path); static void deleteFileIfExists(UnderFileSystem ufs, String path); static boolean isGcs(UnderFileSystem ufs); static boolean isLocal(UnderFileSystem ufs); static boolean isHdfs(UnderFileSystem ufs); static boolean isOss(UnderFileSystem ufs); static boolean isS3(UnderFileSystem ufs); static boolean isSwift(UnderFileSystem ufs); static boolean isWeb(UnderFileSystem ufs); static String getBucketName(AlluxioURI uri); static String approximateContentHash(long length, long modTime);  }