@Override public T next() throws IOException { return transform.apply(itor.next()); } };
@Override public T next() throws IOException { return transform.apply(itor.next()); } };
/** * Returns a {@link LocationStatus} describing the status of the given {@link Location}. */ private static LocationStatus getLocationStatus(Location location) throws IOException { LocationFactory lf = location.getLocationFactory(); if (lf instanceof FileContextLocationFactory) { return FILE_STATUS_TO_LOCATION_STATUS.apply( ((FileContextLocationFactory) lf).getFileContext().getFileLinkStatus(new Path(location.toURI()))); } return LOCATION_TO_LOCATION_STATUS.apply(location); }
/** * Returns a {@link LocationStatus} describing the status of the given {@link Location}. */ private static LocationStatus getLocationStatus(Location location) throws IOException { LocationFactory lf = location.getLocationFactory(); if (lf instanceof FileContextLocationFactory) { return FILE_STATUS_TO_LOCATION_STATUS.apply( ((FileContextLocationFactory) lf).getFileContext().getFileLinkStatus(new Path(location.toURI()))); } return LOCATION_TO_LOCATION_STATUS.apply(location); }