Package io.delta.storage.internal
Class S3LogStoreUtil
Object
io.delta.storage.internal.S3LogStoreUtil
Static utility methods for the S3SingleDriverLogStore.
Used to trick the class loader so we can use methods of org.apache.hadoop:hadoop-aws without needing to load this as
a dependency for tests in core.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.fs.FileStatus[]s3ListFromArray(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path resolvedPath, org.apache.hadoop.fs.Path parentPath) Uses the S3ListRequest.v2 interface with the startAfter parameter to only list files which are lexicographically greater than resolvedPath.
-
Method Details
-
s3ListFromArray
public static org.apache.hadoop.fs.FileStatus[] s3ListFromArray(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path resolvedPath, org.apache.hadoop.fs.Path parentPath) throws IOException Uses the S3ListRequest.v2 interface with the startAfter parameter to only list files which are lexicographically greater than resolvedPath. Wraps s3ListFrom in an array. Contained in this class to avoid contaminating other classes with dependencies on recent Hadoop versions. TODO: Remove this method when iterators are used everywhere.- Throws:
IOException
-