public final class CommitUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static S3AFileSystem |
getS3AFileSystem(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
boolean magicCommitRequired)
Get the S3A FS of a path.
|
static void |
validateCollectionClass(Iterable it,
Class classname)
Verify that all instances in a collection are of the given class.
|
static void |
verifyIsMagicCommitFS(S3AFileSystem fs)
Verify that an S3A FS instance is a magic commit FS.
|
static void |
verifyIsMagicCommitPath(S3AFileSystem fs,
org.apache.hadoop.fs.Path path)
Verify that the path is a magic one.
|
static S3AFileSystem |
verifyIsS3AFS(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path)
Verify that an FS is an S3A FS.
|
public static void verifyIsMagicCommitPath(S3AFileSystem fs, org.apache.hadoop.fs.Path path) throws PathCommitException
fs - filesystempath - pathPathCommitException - if the path isn't a magic commit pathpublic static void verifyIsMagicCommitFS(S3AFileSystem fs) throws PathCommitException
fs - filesystemPathCommitException - if the FS isn't a magic commit FS.public static S3AFileSystem verifyIsS3AFS(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws PathCommitException
fs - filesystempath - path to to use in exceptionPathCommitException - if the FS is not an S3A FS.public static S3AFileSystem getS3AFileSystem(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, boolean magicCommitRequired) throws PathCommitException, IOException
path - path to examineconf - configmagicCommitRequired - is magic complete required in the FS?PathCommitException - output path isn't to an S3A FS instance, or
if magicCommitRequired is set, if doesn't support these commits.IOException - failure to instantiate the FSpublic static void validateCollectionClass(Iterable it, Class classname) throws ValidationFailure
it - iteratorclassname - classname to requireValidationFailure - on a failureCopyright © 2008–2021 Apache Software Foundation. All rights reserved.