Paths { public static String getRelativePath(Path basePath, Path fullPath) { return basePath.toUri().relativize(fullPath.toUri()).getPath(); } private  Paths(); static String addUUID(String pathStr, String uuid); static String getParent(String pathStr); static String getRelativePath(Path basePath,
      Path fullPath); static Path path(Path parent, String... child); static Path getLocalTaskAttemptTempDir(final Configuration conf,
      final String uuid,
      final TaskAttemptID attemptID); static void clearTempFolderInfo(final TaskAttemptID attemptID); @VisibleForTesting static void resetTempFolderCache(); static Path tempDirForStaging(FileSystem fs,
      Configuration conf); static Path getMultipartUploadCommitsDirectory(Configuration conf,
      String uuid); static Set<String> getPartitions(Path attemptPath,
      List<? extends FileStatus> taskOutput);  }
@Test public void testRelativizeOneLevel() { String suffix = "year=2017"; Path path = new Path(DATA + suffix); assertEquals(suffix, getRelativePath(BASE, path)); }
@Test public void testRelativizeSelf() { assertEquals("", getRelativePath(BASE, BASE)); }