@Test public void testSupportsRenameConfigTrue() { Configuration conf = new Configuration(); conf.setBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, true); Assert.assertTrue("Should override via config to true for S3A", FileSystemUtil.supportsRename(URI.create("s3a: Assert.assertTrue("Should override via config true for S3N", FileSystemUtil.supportsRename(URI.create("s3n: }
public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); }
FileSystemUtil { public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); } }
FileSystemUtil { public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); }  }
FileSystemUtil { public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); }  static void ensureLocationExists(
      DatasetDescriptor descriptor, Configuration conf); static Schema schema(String name, FileSystem fs, Path location); static PartitionStrategy strategy(FileSystem fs, Path location); static Format format(FileSystem fs, Path location); static Collection<DatasetDescriptor> findPotentialDatasets(
      FileSystem fs, Path path); static boolean supportsRename(URI fsUri, Configuration conf); }
FileSystemUtil { public static boolean supportsRename(URI fsUri, Configuration conf) { String fsUriScheme = fsUri.getScheme(); return conf.getBoolean(FileSystemProperties.SUPPORTS_RENAME_PROP, !(fsUriScheme.equalsIgnoreCase("s3n") || fsUriScheme.equalsIgnoreCase("s3a"))); }  static void ensureLocationExists(
      DatasetDescriptor descriptor, Configuration conf); static Schema schema(String name, FileSystem fs, Path location); static PartitionStrategy strategy(FileSystem fs, Path location); static Format format(FileSystem fs, Path location); static Collection<DatasetDescriptor> findPotentialDatasets(
      FileSystem fs, Path path); static boolean supportsRename(URI fsUri, Configuration conf);  }