Paths { protected static String getPartition(String relative) { return getParent(relative); } 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 testGetPartition() { assertEquals("year=2017/month=10", getPartition("year=2017/month=10/part-0000.avro")); }