/** * As {@link #findActualInputPaths(String)} but requires the presence of only a single input file. */ public static String findActualSingleInputPath(String ostensibleInputFile) { final Collection<String> inputPaths = FileSystems.findActualInputPaths(ostensibleInputFile); if (inputPaths.size() != 1) { throw new RheemException(String.format( "Illegal number of files for \"%s\": %s", ostensibleInputFile, inputPaths )); // TODO: Add support. } return inputPaths.iterator().next(); }