/** * @param readables collection of readables * @return Set of source locations from source tasks in {@code taskDAG} * @throws Exception for any exception raised during querying source locations for a readable */ private static Set<String> getSourceDataLocations(final Collection<Readable> readables) throws Exception { final List<String> sourceLocations = new ArrayList<>(); for (final Readable readable : readables) { sourceLocations.addAll(readable.getLocations()); } return new HashSet<>(sourceLocations); }
/** * @param readables collection of readables * @return Set of source locations from source tasks in {@code taskDAG} * @throws Exception for any exception raised during querying source locations for a readable */ private static Set<String> getSourceDataLocations(final Collection<Readable> readables) throws Exception { final List<String> sourceLocations = new ArrayList<>(); for (final Readable readable : readables) { sourceLocations.addAll(readable.getLocations()); } return new HashSet<>(sourceLocations); }