public static void setCustomPath(String customPathFormat, OutputJobInfo jobInfo) { // find the root of all custom paths from custom pattern. The root is the // largest prefix in input pattern string that doesn't match customPathPattern Path customPath = new Path(customPathFormat); URI customURI = customPath.toUri(); while (customPath != null && !customPath.toString().isEmpty()) { Matcher m = customPathPattern.matcher(customPath.toString()); if (!m.find()) { break; } customPath = customPath.getParent(); } URI rootURI = customPath.toUri(); URI childURI = rootURI.relativize(customURI); jobInfo.setCustomDynamicLocation(rootURI.getPath(), childURI.getPath()); } }
public static void setCustomPath(String customPathFormat, OutputJobInfo jobInfo) { // find the root of all custom paths from custom pattern. The root is the // largest prefix in input pattern string that doesn't match customPathPattern Path customPath = new Path(customPathFormat); URI customURI = customPath.toUri(); while (customPath != null && !customPath.toString().isEmpty()) { Matcher m = customPathPattern.matcher(customPath.toString()); if (!m.find()) { break; } customPath = customPath.getParent(); } URI rootURI = customPath.toUri(); URI childURI = rootURI.relativize(customURI); jobInfo.setCustomDynamicLocation(rootURI.getPath(), childURI.getPath()); } }
public static void setCustomPath(String customPathFormat, OutputJobInfo jobInfo) { // find the root of all custom paths from custom pattern. The root is the // largest prefix in input pattern string that doesn't match customPathPattern Path customPath = new Path(customPathFormat); URI customURI = customPath.toUri(); while (customPath != null && !customPath.toString().isEmpty()) { Matcher m = customPathPattern.matcher(customPath.toString()); if (!m.find()) { break; } customPath = customPath.getParent(); } URI rootURI = customPath.toUri(); URI childURI = rootURI.relativize(customURI); jobInfo.setCustomDynamicLocation(rootURI.getPath(), childURI.getPath()); } }
public static void setCustomPath(String customPathFormat, OutputJobInfo jobInfo) { // find the root of all custom paths from custom pattern. The root is the // largest prefix in input pattern string that doesn't match customPathPattern Path customPath = new Path(customPathFormat); URI customURI = customPath.toUri(); while (customPath != null && !customPath.toString().isEmpty()) { Matcher m = customPathPattern.matcher(customPath.toString()); if (!m.find()) { break; } customPath = customPath.getParent(); } URI rootURI = customPath.toUri(); URI childURI = rootURI.relativize(customURI); jobInfo.setCustomDynamicLocation(rootURI.getPath(), childURI.getPath()); } }
public static void setCustomPath(String customPathFormat, OutputJobInfo jobInfo) { // find the root of all custom paths from custom pattern. The root is the // largest prefix in input pattern string that doesn't match customPathPattern Path customPath = new Path(customPathFormat); URI customURI = customPath.toUri(); while (customPath != null && !customPath.toString().isEmpty()) { Matcher m = customPathPattern.matcher(customPath.toString()); if (!m.find()) { break; } customPath = customPath.getParent(); } URI rootURI = customPath.toUri(); URI childURI = rootURI.relativize(customURI); jobInfo.setCustomDynamicLocation(rootURI.getPath(), childURI.getPath()); } }