|
@@ -949,8 +949,10 @@ public final class S3AUtils {
|
|
/**
|
|
/**
|
|
* Map an operation to every {@link LocatedFileStatus} in a remote
|
|
* Map an operation to every {@link LocatedFileStatus} in a remote
|
|
* iterator, returning a list of the results.
|
|
* iterator, returning a list of the results.
|
|
|
|
+ * @param <T> return type of map
|
|
* @param iterator iterator from a list
|
|
* @param iterator iterator from a list
|
|
* @param eval closure to evaluate
|
|
* @param eval closure to evaluate
|
|
|
|
+ * @return the list of mapped results.
|
|
* @throws IOException anything in the closure, or iteration logic.
|
|
* @throws IOException anything in the closure, or iteration logic.
|
|
*/
|
|
*/
|
|
public static <T> List<T> mapLocatedFiles(
|
|
public static <T> List<T> mapLocatedFiles(
|
|
@@ -965,8 +967,10 @@ public final class S3AUtils {
|
|
/**
|
|
/**
|
|
* Map an operation to every {@link LocatedFileStatus} in a remote
|
|
* Map an operation to every {@link LocatedFileStatus} in a remote
|
|
* iterator, returning a list of the all results which were not empty.
|
|
* iterator, returning a list of the all results which were not empty.
|
|
|
|
+ * @param <T> return type of map
|
|
* @param iterator iterator from a list
|
|
* @param iterator iterator from a list
|
|
* @param eval closure to evaluate
|
|
* @param eval closure to evaluate
|
|
|
|
+ * @return the flattened list of mapped results.
|
|
* @throws IOException anything in the closure, or iteration logic.
|
|
* @throws IOException anything in the closure, or iteration logic.
|
|
*/
|
|
*/
|
|
public static <T> List<T> flatmapLocatedFiles(
|
|
public static <T> List<T> flatmapLocatedFiles(
|